updated travis and README.md
This commit is contained in:
parent
6964a4b065
commit
678a1c85fb
|
@ -7,9 +7,7 @@ matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
script:
|
script:
|
||||||
- cargo build --features=heapsizeof,std
|
- cargo test -p ethereum-types --no-default-futures
|
||||||
- cargo test --release --features=heapsizeof,std
|
- cargo test -p tests
|
||||||
- rustup default nightly
|
|
||||||
- cargo bench
|
|
||||||
env:
|
env:
|
||||||
- RUST_LOG=quickcheck
|
- RUST_LOG=quickcheck
|
||||||
|
|
10
README.md
10
README.md
|
@ -1,8 +1,6 @@
|
||||||
# bigint
|
# bigint
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/paritytech/bigint.svg?branch=master)](https://travis-ci.org/paritytech/bigint)
|
[![Build Status](https://travis-ci.org/paritytech/primitives.svg?branch=master)](https://travis-ci.org/paritytech/primitives)
|
||||||
|
|
||||||
[API Documentation](https://docs.rs/bigint/)
|
|
||||||
|
|
||||||
Fixed-sized integers arithmetic
|
Fixed-sized integers arithmetic
|
||||||
|
|
||||||
|
@ -16,8 +14,8 @@ bigint = "4"
|
||||||
Little example
|
Little example
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
extern crate bigint;
|
extern crate ethereum_types;
|
||||||
use bigint::U256;
|
use ethereum_types::U256;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut val: U256 = 1023.into();
|
let mut val: U256 = 1023.into();
|
||||||
|
@ -36,5 +34,5 @@ in a `no_std` context, add the following to your `Cargo.toml`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bigint = { version = "4", default-features = false }
|
ethereum-types = { version = "4", default-features = false }
|
||||||
```
|
```
|
||||||
|
|
|
@ -9,5 +9,6 @@ fixed-hash = { path = "../fixed-hash", version = "0.1" }
|
||||||
crunchy = "0.1.5"
|
crunchy = "0.1.5"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
default = ["std", "heapsizeof"]
|
||||||
std = ["uint/std", "fixed-hash/std"]
|
std = ["uint/std", "fixed-hash/std"]
|
||||||
heapsizeof = ["uint/heapsizeof", "fixed-hash/heapsizeof"]
|
heapsizeof = ["uint/heapsizeof", "fixed-hash/heapsizeof"]
|
||||||
|
|
Loading…
Reference in New Issue