Merge branch 'master' into beacon

This commit is contained in:
Héctor Ramón Jiménez 2025-03-04 19:11:37 +01:00
commit 8bd5de72ea
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
371 changed files with 33138 additions and 12950 deletions

View file

@ -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

View file

@ -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())
});