Skip to content

Create presets, e.g. #[hash(Default)] for #[derive(PartialEq,Eq,Hash, Default)]

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

dekirisu/derive_preset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Derive Preset

Create derive presets inside a proc-macro crate - with generated docs attached to view which derives are included!

Inside a Proc-Macro Crate:

derive_preset::create!{
    hashable "PartialEq,Eq,Hash,Clone,Debug"
    serde "Serialize,Deserialize,Clone"
}

Use it in another Crate:

use my_proc_crate::*;

#[hashable(Clone,Default)]
struct Id(u32);

#[serde(Debug)]
struct Data(f32);

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Create presets, e.g. #[hash(Default)] for #[derive(PartialEq,Eq,Hash, Default)]

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages