Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples for all features #5

Open
6 of 12 tasks
Nemo157 opened this issue Apr 29, 2017 · 0 comments
Open
6 of 12 tasks

Examples for all features #5

Nemo157 opened this issue Apr 29, 2017 · 0 comments
Milestone

Comments

@Nemo157
Copy link
Owner

Nemo157 commented Apr 29, 2017

Currently there's just the one basic example. The docs should be extended to show all the different features. There should be tests covering them all so basically need to take a good subset of the tests, clean them up, add some notes, and put them in the crate docs.

Quick list of what features I can think of right now:

  • attire(scope) - setting a wrapper attribute
  • attire(default) - setting a default if unspecified
  • FromStr parsing - parsing strings passed in as values
  • attire(docs) - putting docs attributes into a place
  • attire(attribute) - setting a different attribute name to use (⚠️🚴🏠 Maybe rename #[attire(attribute=)] #9)
  • attire(split_attribute_of) - complicated, semi-unstable (Reconsider #[attire(split_attribute_of=)] #10)
  • attire(flag_value) - set a default if the attribute is used without a value, (⚠️🚴🏠 Maybe rename #[attire(flag_value=)] #11)
  • literals - support for non-string literals (currently unstable in Rust, but supported by syn)
  • bool - special cased default and flag_value
  • Vec - attributes that can take multiple values
  • errors - the errors that can be returned during parsing
  • lifetimes - borrowing strings from the AST
@Nemo157 Nemo157 mentioned this issue Apr 29, 2017
4 tasks
@Nemo157 Nemo157 added this to the 0.1.1 milestone Apr 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant