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

Remove dependency on quote & proc-macro2 #20

Merged
merged 2 commits into from
Aug 25, 2020
Merged

Remove dependency on quote & proc-macro2 #20

merged 2 commits into from
Aug 25, 2020

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Aug 25, 2020

Closes #16

@taiki-e
Copy link
Owner Author

taiki-e commented Aug 25, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 25, 2020

Build succeeded:

@bors bors bot merged commit 12672ab into master Aug 25, 2020
@bors bors bot deleted the deps branch August 25, 2020 05:43
@jhpratt
Copy link

jhpratt commented Aug 25, 2020

Awesome change! Thanks a ton. I'll definitely use this as a dependency on the time crate relatively soon.

@taiki-e taiki-e mentioned this pull request Aug 25, 2020
bors bot added a commit that referenced this pull request Aug 25, 2020
21: Release 0.4.0 r=taiki-e a=taiki-e

Changes:

* [Add support for version-based code generation.](#17) The following conditions are available:

  ```rust
  use const_fn::const_fn;

  // function is `const` on specified version and later compiler (including beta and nightly)
  #[const_fn("1.36")]
  pub const fn version() {
      /* ... */
  }

  // function is `const` on nightly compiler (including dev build)
  #[const_fn(nightly)]
  pub const fn nightly() {
      /* ... */
  }

  // function is `const` if `cfg(...)` is true
  #[const_fn(cfg(...))]
  pub const fn cfg() {
      /* ... */
  }

  // function is `const` if `cfg(feature = "...")` is true
  #[const_fn(feature = "...")]
  pub const fn feature() {
      /* ... */
  }
  ```

* Improve compile time by removing proc-macro related dependencies ([#18](#18), [#20](#20)).

Co-authored-by: Taiki Endo <te316e89@gmail.com>
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

Successfully merging this pull request may close these issues.

Remove dependency on syn & quote
2 participants