variants-derive

Crates.iovariants-derive
lib.rsvariants-derive
version
sourcesrc
created_at2024-12-02 10:54:57.727269
updated_at2024-12-02 10:54:57.727269
descriptionUseful macros for constructing enum variants
homepagehttps://github.com/FL03/variants/wiki
repositoryhttps://github.com/FL03/variants.git
max_upload_size
id1468512
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`
size0
Joe McCain III (FL03)

documentation

README

variants

crates.io docs.rs license

clippy rust


The library is currently in the early stages of development and is not yet ready for production use.

Useful macros for constructing enum variants

Features

  • Feature 1

Getting Started

Building from the source

Start by cloning the repository

git clone https://github.com/FL03/variants.git
cd variants

Building the project

cargo build --all-features -r -v --workspace

Running tests

cargo test --all-features -r -v --workspace

Usage

Add this to your Cargo.toml:

[dependencies.variants]
features = []
version = "0.1.0"

Examples

Basic Usage

    extern crate variants;

    fn main() -> Result<(), Box<dyn std::error::Error>> {
        tracing_subscriber::fmt::init();
        tracing::info!("Welcome to {name}", name = variants);


        Ok(())
    }

Contributing

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.

Commit count: 3

cargo fmt