Technical notes

Share this post
Rust - common crates
moshan.substack.com

Rust - common crates

Mo Shan
Apr 24
Share this post
Rust - common crates
moshan.substack.com
  • serde

    • it can serialize and deserialize many data structures to yaml, toml, etc

#[derive(Serialize, Deserialize)]
pub struct User {
    id: String, 
    name: String, 
    age: u8, 
}

fn main() {
    let input = ScanInput {
        table_name: "users".to_string(), 
        ..ScanInput::default(); 
    }; 

    let result = client.scan(input).await?; 
    
    if let Some(items) = result.items {
        let users: Vec<User> = serde_dynamo::from_items(items)?; 
        println!("Got {} users", user.len()); 
    }
}
  • tokio

  • thiserror/anyhow

  • clap, structopt, dialoguer, indicatif

  • futures / async-trait

  • crossbeam

  • nom, pest, combine

  • zola, mdbook

  • tch-rs, linfa

Share this post
Rust - common crates
moshan.substack.com
Comments

Create your profile

0 subscriptions will be displayed on your profile (edit)

Skip for now

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.

TopNew

No posts

Ready for more?

© 2022 Mo Shan
Privacy ∙ Terms ∙ Collection notice
Publish on Substack Get the app
Substack is the home for great writing