1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! A library for manipulating assets in an asset canister.
//!
//! # Example
//!
//! ```rust,no_run
//! use ic_agent::agent::Agent;
//! use ic_agent::identity::BasicIdentity;
//! use ic_utils::Canister;
//! use std::time::Duration;
//! # async fn not_main() -> Result<(), Box<dyn std::error::Error>> {
//! # let replica_url = "";
//! # let pemfile = "";
//! # let canister_id = "";
//! let agent = Agent::builder()
//! .with_url(replica_url)
//! .with_identity(BasicIdentity::from_pem_file(pemfile)?)
//! .build()?;
//! let canister = Canister::builder()
//! .with_canister_id(canister_id)
//! .with_agent(&agent)
//! .build()?;
//! let logger = slog::Logger::root(slog::Discard, slog::o!());
//! ic_asset::sync(&canister, &[concat!(env!("CARGO_MANIFEST_DIR"), "assets/").as_ref()], false, &logger, None).await?;
//! # Ok(())
//! # }
pub use compute_evidence;
pub use compute_state_hash;
pub use ;
pub use prepare_sync_for_proposal;
pub use sync;
pub use upload;