diff --git a/muta-apm-derive/Cargo.toml b/muta-apm-derive/Cargo.toml index 5dc9333..2fdc250 100644 --- a/muta-apm-derive/Cargo.toml +++ b/muta-apm-derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "muta-apm-derive" -version = "0.1.0-alpha.12" +version = "0.1.0" authors = ["Muta Dev "] edition = "2018" license = "MIT" diff --git a/muta-apm/Cargo.toml b/muta-apm/Cargo.toml index 767c3f6..c49b067 100644 --- a/muta-apm/Cargo.toml +++ b/muta-apm/Cargo.toml @@ -1,31 +1,26 @@ [package] name = "muta-apm" -version = "0.1.0-alpha.15" +version = "0.1.0" authors = ["Muta Dev "] -edition = "2018" +edition = "2021" license = "MIT" description = "Muta application performance monitor." # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -crossbeam-channel = "0.4" +crossbeam-channel = "0.5" lazy_static = "1.4" -parking_lot = "0.10" -rustracing = "0.4" -rustracing_jaeger = "0.4" -muta-apm-derive = "0.1.0-alpha.12" +parking_lot = "0.11" +rustracing = "0.5" +rustracing_jaeger = "0.7" +muta-apm-derive = "0.1" log = "0.4" creep = "0.2" [dev-dependencies] async-trait = "0.1" -bytes = "0.5" -creep = "0.2" -crossbeam-channel = "0.4" +bytes = "1.1" lazy_static = "1.4" -overlord = "0.2.0-alpha.11" -rustracing = "0.4" -rustracing_jaeger = "0.4" -tokio = { version = "0.2", features = ["macros", "rt-threaded"] } +tokio = { version = "1.14", features = ["macros", "rt"] } muta-protocol = { git = "https://github.com/nervosnetwork/muta.git", rev = "49474fd" } diff --git a/muta-apm/src/lib.rs b/muta-apm/src/lib.rs index 0bc2b74..db7ba07 100644 --- a/muta-apm/src/lib.rs +++ b/muta-apm/src/lib.rs @@ -31,8 +31,7 @@ pub fn global_tracer_register(service_name: &str, udp_addr: SocketAddr, batch_si *tracer = Some(Tracer::with_sender(AllSampler, span_tx)); reporter - .set_agent_addr(udp_addr) - .expect("set udp addr error"); + .set_agent_addr(udp_addr); let mut batch_spans = Vec::with_capacity(batch_size + 1); std::thread::spawn(move || loop { @@ -49,7 +48,6 @@ pub fn global_tracer_register(service_name: &str, udp_addr: SocketAddr, batch_si }); } -#[derive(Default)] pub struct MutaTracer { pub(crate) inner: RwLock>, } diff --git a/muta-codec-derive/Cargo.toml b/muta-codec-derive/Cargo.toml index 120a799..20565af 100644 --- a/muta-codec-derive/Cargo.toml +++ b/muta-codec-derive/Cargo.toml @@ -2,7 +2,7 @@ name = "muta-codec-derive" version = "0.2.2" authors = ["Muta Dev "] -edition = "2018" +edition = "2021" repository = "https://github.com/nervosnetwork/muta-utils" license = "MIT" description = "Muta fixed codec derive procedural macros." @@ -16,7 +16,7 @@ quote = "1.0" syn = "1.0" [dev-dependencies] -bytes = "0.5" +bytes = "1.1" rand = "0.7" -rlp = "0.4" +rlp = "0.5" muta-protocol = { git = "https://github.com/nervosnetwork/muta.git", rev = "49474fd" } diff --git a/rust-toolchain b/rust-toolchain index d5888da..afba1a2 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2020-03-09 \ No newline at end of file +1.56.1 \ No newline at end of file