Arthas is an in-memory structure database.
Arthas requires Rust 1.15 or above.
Add dependencies to Cargo.toml
[dependencies]
arthas = "^0.3"
arthas_derive = "^0.1"
serde = "^0.9"
serde_derive = "^0.9"
In your main.rs
or lib.rs
:
extern crate arthas;
#[macro_use]
extern crate arthas_derive;
#[macro_use]
extern crate serde_derive;
Examples can be found in the Documentation.
#[arthas]
with #[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize, Arthas)]
#[arthas(one)]
, replace with the attribute #[arthas(is_one)]
#[arthas_rename("from = to")]
, replace with the attribute #[arthas(rename = "from = to")]
#[arthas(one)]
and #[arthas_rename("from = to")]
, replace with #[arthas(is_one, rename = "from = to")]
arthas is primarily distributed under the terms of the MIT license. See LICENSE for details.