16 stable releases

new 4.5.18 Jul 10, 2024
4.5.16 Jun 30, 2024
4.5.13 Mar 14, 2024
4.5.3 Dec 28, 2023
0.1.13 Nov 17, 2022

#13 in #intermediate-representation

Download history 672/week @ 2024-03-16 509/week @ 2024-03-23 616/week @ 2024-03-30 347/week @ 2024-04-06 410/week @ 2024-04-13 415/week @ 2024-04-20 472/week @ 2024-04-27 398/week @ 2024-05-04 356/week @ 2024-05-11 448/week @ 2024-05-18 448/week @ 2024-05-25 633/week @ 2024-06-01 518/week @ 2024-06-08 452/week @ 2024-06-15 541/week @ 2024-06-22 572/week @ 2024-06-29

2,158 downloads per month
Used in 33 crates (24 directly)

Apache-2.0

70KB
2K SLoC

rbs

  • rbs is rbatis's impl serde serialize trait crates.
  • The rbs serialization framework is used to serialize parameters and deserialize sql result sets, and provides the value structure as py_ Sql and html_ The intermediate object representation of the expression in sql.

use example

use std::collections::HashMap;
fn main(){
    #[derive(serde::Serialize, serde::Deserialize, Debug)]
    pub struct A {
        pub name: String,
    }
    let a = A {
        name: "sss".to_string(),
    };
    let v = rbs::to_value(a).unwrap();
    println!("v: {}",v);
    let s: A = rbs::from_value(v).unwrap();
    println!("s:{:?}", s);
}

Dependencies

~1.1–2MB
~38K SLoC