29 stable releases

5.0.2 Apr 18, 2026
4.8.4 Apr 20, 2026
4.7.0 Jan 5, 2026
4.6.2 Jun 7, 2025
0.1.13 Nov 17, 2022

#1755 in Database interfaces

Download history 825/week @ 2026-02-24 827/week @ 2026-03-03 1105/week @ 2026-03-10 959/week @ 2026-03-17 909/week @ 2026-03-24 710/week @ 2026-03-31 943/week @ 2026-04-07 978/week @ 2026-04-14 953/week @ 2026-04-21 1040/week @ 2026-04-28 946/week @ 2026-05-05 769/week @ 2026-05-12 892/week @ 2026-05-19 735/week @ 2026-05-26 5803/week @ 2026-06-02 7835/week @ 2026-06-09

15,424 downloads per month
Used in 55 crates (39 directly)

Apache-2.0

78KB
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;
#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct A {
    pub name: String,
}

fn main(){
    let a = A {
        name: "sss".to_string(),
    };
    let value = rbs::value(a).unwrap();
    println!("value: {}",value);
    let a: A = rbs::from_value(value).unwrap();
    println!("a:{:?}", a);
    
    //macro
    let val = value! {
            "name": "Alice",
            "age": 30,
            "city": "New York"
        };
    println!("val: {}",val);
}

Dependencies

~0.8–1.6MB
~31K SLoC