Skip to content

Commit

Permalink
adapt crate metadata for publishing on crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Oct 25, 2023
1 parent df67f97 commit a75f3ba
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
**/*.rs.bk
.idea
Cargo.lock
26 changes: 16 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
[package]
name = "substrate-fixed"
version = "0.5.9"
authors = ["Trevor Spiteri <[email protected]>"]
authors = [
"Trevor Spiteri <[email protected]>",
"Encointer Association <[email protected]>",
]
description = "Fixed-point numbers"
documentation = "https://docs.rs/fixed"
repository = "https://gitlab.com/tspiteri/fixed"
repository = "https://github.com/encointer/substrate-fixed"
readme = "README.md"
keywords = ["mathematics", "numerics"]
categories = ["algorithms", "data-structures", "no-std", "science"]
Expand All @@ -22,19 +25,22 @@ autobenches = false
[features]
f16 = ["half"]
fail-on-warnings = []
std = [
"codec/std",
"serde/std",
"scale-info/std",
]
std = ["codec/std", "serde/std", "scale-info/std"]

[dependencies]
typenum = { tag = "polkadot-v1.0.0", features = ["derive_scale"], git = "https://github.com/encointer/typenum" }
typenum = { package = "substrate-typenum", version = "1.16.0", features = [
"derive_scale",
] }
az = { version = "0.3", optional = true }
half = { version = "1.4", optional = true }
serde = { version = "1.0.60", default-features = false, optional = true }
scale-info = { version = "2.5.0", default-features = false, features = ["derive"] }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive", "max-encoded-len"] }
scale-info = { version = "2.5.0", default-features = false, features = [
"derive",
] }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = [
"derive",
"max-encoded-len",
] }

[dev-dependencies]
rand = { version = "0.7", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ modification, are permitted in any medium without royalty provided the
copyright notice and this notice are preserved. This file is offered
as-is, without any warranty. -->

[![crates.io](https://img.shields.io/crates/v/substrate-typenum.svg)](https://crates.io/crates/substrate-typenum)

# Fixed-point numbers for substrate
This crate ist ported from `fixed = 0.5.4`. It has been adapted to be usable within [substrate](https://github.com/paritytech/substrate) runtimes. Additionally, transcendental functions have been added (log, exp, pow, trigonometry).

Expand Down

0 comments on commit a75f3ba

Please sign in to comment.