Skip to content

Commit

Permalink
Can get sn list, device from the meta, can automatically bind endpoin…
Browse files Browse the repository at this point in the history
…ts for bdt-tool
  • Loading branch information
jing-git committed May 18, 2023
1 parent 3cd354a commit 4d93a52
Show file tree
Hide file tree
Showing 7 changed files with 217 additions and 42 deletions.
7 changes: 7 additions & 0 deletions src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/component/cyfs-stack/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ mod admin;
mod crypto;
mod crypto_api;
mod interface;
mod meta;
mod name;
pub mod meta;
pub mod name;
//mod default_app;
mod router_handler;
mod stack;
Expand Down
4 changes: 2 additions & 2 deletions src/component/cyfs-stack/src/meta/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ mod fail_handler;
mod fail_cache;
mod cache;

pub(crate) use meta_cache::*;
pub(crate) use raw_meta::*;
pub use meta_cache::*;
pub use raw_meta::*;
pub(crate) use fail_handler::*;
2 changes: 1 addition & 1 deletion src/component/cyfs-stack/src/meta/raw_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const OBJECT_CACHE_TIMEOUT_IN_SECS: u64 = 60 * 15;
const NAME_CACHE_TIMEOUT_IN_SECS: u64 = 60 * 15;

#[derive(Clone)]
pub(crate) struct RawMetaCache {
pub struct RawMetaCache {
noc: NamedObjectCacheRef,
meta_client: Arc<MetaClient>,
device_id: DeviceId,
Expand Down
2 changes: 1 addition & 1 deletion src/component/cyfs-stack/src/name/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod name_cache;
mod name_resolver;

pub(crate) use name_resolver::*;
pub use name_resolver::*;
9 changes: 8 additions & 1 deletion src/tools/bdt-tool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ cyfs-debug = { path = "../../component/cyfs-debug" }
cyfs-base = { path = "../../component/cyfs-base" }
cyfs-bdt = { path = "../../component/cyfs-bdt" }
cyfs-util = { path = '../../component/cyfs-util', version = '0.6' }
cyfs-stack-loader = { path = "../../component/cyfs-stack-loader" }
cyfs-lib = { path = "../../component/cyfs-lib" }
cyfs-noc = { path = "../../component/cyfs-noc" }
cyfs-stack = { path = "../../component/cyfs-stack" }
cyfs-meta-lib = { path = "../../component/cyfs-meta-lib" }
cyfs-base-meta = { path = "../../component/cyfs-base-meta" }
async-std = { version = "1.11", features = ["unstable", "attributes"] }
clap = "2.34.0"
log = "0.4"
md5 = "0.7.0"
md5 = "0.7.0"
rand = "0.7"
Loading

0 comments on commit 4d93a52

Please sign in to comment.