Merge branch 'master' into beacon
This commit is contained in:
commit
8bd5de72ea
371 changed files with 33138 additions and 12950 deletions
|
|
@ -11,13 +11,10 @@ categories.workspace = true
|
|||
keywords.workspace = true
|
||||
|
||||
[features]
|
||||
enable = ["dep:iced_beacon", "dep:once_cell"]
|
||||
enable = ["dep:iced_beacon"]
|
||||
|
||||
[dependencies]
|
||||
iced_core.workspace = true
|
||||
|
||||
iced_beacon.workspace = true
|
||||
iced_beacon.optional = true
|
||||
|
||||
once_cell.workspace = true
|
||||
once_cell.optional = true
|
||||
|
|
|
|||
|
|
@ -72,10 +72,9 @@ mod internal {
|
|||
use beacon::client::{self, Client};
|
||||
use beacon::span;
|
||||
|
||||
use once_cell::sync::Lazy;
|
||||
use std::process;
|
||||
use std::sync::atomic::{self, AtomicBool};
|
||||
use std::sync::RwLock;
|
||||
use std::sync::{LazyLock, RwLock};
|
||||
|
||||
pub fn init(name: &str) {
|
||||
let name = name.split("::").next().unwrap_or(name);
|
||||
|
|
@ -196,7 +195,7 @@ mod internal {
|
|||
}
|
||||
}
|
||||
|
||||
static BEACON: Lazy<Client> = Lazy::new(|| {
|
||||
static BEACON: LazyLock<Client> = LazyLock::new(|| {
|
||||
client::connect(NAME.read().expect("Read application name").to_owned())
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue