Rust Library Reference
Install
[dependencies]
ant-core = { path = "../ant-client/ant-core" }
bytes = "1"
tokio = { version = "1", features = ["full"] }Connect to the network
use ant_core::data::{Client, ClientConfig};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::connect(&["1.2.3.4:12000".parse()?], ClientConfig::default()).await?;
let _ = client;
Ok(())
}Store and retrieve data
File operations
External signer flows
Key types
Type
Description
External signer example
Error handling
Local development
Related pages
Last updated