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

Release 0.4.0 #21

Merged
merged 1 commit into from
Aug 25, 2020
Merged

Release 0.4.0 #21

merged 1 commit into from
Aug 25, 2020

Conversation

taiki-e
Copy link
Owner

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

Changes:

  • Add support for version-based code generation. The following conditions are available:

    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, #20).

@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 9383c4a into master Aug 25, 2020
@bors bors bot deleted the next-version branch August 25, 2020 06:20
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