Skip to content

an extremely trivial example for super trait in rust

Notifications You must be signed in to change notification settings

sigongzi/press_news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run example

cargo run --example fake-real

summary

create a new crate named <trait_name>_derive (relatively canonical)

add

[lib]
proc-macro = true

in Cargo.toml

And re-export the proc_macro_derive trait in current lib

for example

in lib.rs (this crate)

pub use press_news_derive::{self, *};

About

an extremely trivial example for super trait in rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages