Crates.io | variants-derive |
lib.rs | variants-derive |
version | |
source | src |
created_at | 2024-12-02 10:54:57.727269 |
updated_at | 2024-12-02 10:54:57.727269 |
description | Useful macros for constructing enum variants |
homepage | https://github.com/FL03/variants/wiki |
repository | https://github.com/FL03/variants.git |
max_upload_size | |
id | 1468512 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
The library is currently in the early stages of development and is not yet ready for production use.
Useful macros for constructing enum variants
Start by cloning the repository
git clone https://github.com/FL03/variants.git
cd variants
cargo build --all-features -r -v --workspace
cargo test --all-features -r -v --workspace
Add this to your Cargo.toml
:
[dependencies.variants]
features = []
version = "0.1.0"
extern crate variants;
fn main() -> Result<(), Box<dyn std::error::Error>> {
tracing_subscriber::fmt::init();
tracing::info!("Welcome to {name}", name = variants);
Ok(())
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.