-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
4 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "const_fn" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = ["Taiki Endo <[email protected]>"] | ||
edition = "2018" | ||
license = "Apache-2.0 OR MIT" | ||
|
@@ -11,7 +11,7 @@ keywords = ["macros", "attribute", "const", "static"] | |
categories = ["rust-patterns"] | ||
readme = "README.md" | ||
description = """ | ||
An attribute for easy generation of a const function with conditional compilations. | ||
An attribute for easy generation of const functions with conditional compilations. | ||
""" | ||
|
||
[package.metadata.docs.rs] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters