tui-input 0.15.3

TUI input library supporting multiple backends
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(feature = "serde")]
mod serde {
    use crate::input::Value;

    #[test]
    fn serde_roundtrip() {
        const STR: &str = "hello äëïöü 한국 🤦";
        let a = Value::new(STR);
        let json = serde_json::to_string(&a).unwrap();
        let b: Value = serde_json::from_str(&json).unwrap();
        assert_eq!(a, b);
    }
}