use grebedb::{Database, Options}; #[test] fn test_send() { fn assert_send() {} assert_send::(); } #[test] fn test_sync() { fn assert_sync() {} assert_sync::(); } #[test] fn test_send_thread() -> anyhow::Result<()> { let mut database = Database::open_memory(Options::default())?; database.put("k", "v")?; let handle = std::thread::spawn(move || { database.get("k").unwrap(); }); handle.join().unwrap(); Ok(()) }