-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
num-macros
FromPrimitive
implementation
Current solution follow syntax proposed in rust-lang/rfcs#1681. Tracking issue rust-lang/rust#35900 Close #227
- Loading branch information
Showing
3 changed files
with
64 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
[package] | ||
name = "num-macros" | ||
version = "0.1.33" | ||
authors = ["The Rust Project Developers"] | ||
license = "MIT/Apache-2.0" | ||
homepage = "https://github.com/rust-num/num" | ||
repository = "https://github.com/rust-num/num" | ||
description = "Numeric syntax extensions" | ||
documentation = "http://rust-num.github.io/num" | ||
homepage = "https://github.com/rust-num/num" | ||
keywords = ["mathematics", "numerics"] | ||
description = "Numeric syntax extensions" | ||
license = "MIT/Apache-2.0" | ||
name = "num-macros" | ||
repository = "https://github.com/rust-num/num" | ||
version = "0.1.33" | ||
|
||
[lib] | ||
name = "num_macros" | ||
plugin = true | ||
[dependencies] | ||
quote = "0.1.3" | ||
syn = "0.5.2" | ||
|
||
[dev-dependencies] | ||
num = { path = "..", version = "0.1" } | ||
|
||
[dev-dependencies.num] | ||
path = ".." | ||
version = "0.1" | ||
|
||
[lib] | ||
crate-type = ["rustc-macro"] | ||
name = "num_macros" | ||
rustc-macro = true | ||
test = false |
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