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 syn #18

Merged
merged 1 commit into from
Aug 25, 2020
Merged

Remove dependency on syn #18

merged 1 commit into from
Aug 25, 2020

Conversation

taiki-e
Copy link
Owner

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

a part of #16

@taiki-e taiki-e force-pushed the syn branch 3 times, most recently from 7eb1eb8 to 5893546 Compare August 24, 2020 12:48
@taiki-e taiki-e changed the title [WIP] Remove dependency on syn Remove dependency on syn Aug 25, 2020
@taiki-e
Copy link
Owner Author

taiki-e commented Aug 25, 2020

Here is the current compile time (with cargo build --release -Z timings):
const-fn2

@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 aa24a39 into master Aug 25, 2020
@bors bors bot deleted the syn branch August 25, 2020 03:46
@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 <[email protected]>
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.

1 participant