Factorysteel is a fixture replacement greatly inspired by factorybot and factory_boy. Currently it is an experimental project. Although usable, it is still very limited in term of features and reliability.
Add this to your Cargo.toml
:
toml
[dependencies]
factory_steel = "0.1.0"
```rust
extern crate factorysteel; use factorysteel::Factory;
struct Post { #[facto(default="New post")] title: String, }
fn main() { let post = Post::create();
//Prints New post
println!("{}", post.title);
} ```
Contributions are welcome! This crate is work in progress, and a lot of work remains to be done. Have a look at the issues, and open a pull request if you'd like to add some functionality.