Skip to content

Commit

Permalink
Revert "add alternate ramp bigint backend"
Browse files Browse the repository at this point in the history
This reverts commit 539e620.
  • Loading branch information
tommilligan committed Apr 8, 2019
1 parent 11b750f commit 6e321e6
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 299 deletions.
132 changes: 0 additions & 132 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,15 @@ version = "0.1.0"
authors = ["Tom Milligan <tom@reinfer.io>"]
edition = "2018"

[features]
backend-num = ["num-bigint"]
backend-ramp = ["ramp"]
default = ["backend-num"]

[dependencies]
cairo-rs = { version = "0.6.0", features = ["png"] }
clap = "^2.33.0"
env_logger = "^0.6.1"
lazy_static = "^1.3.0"
log = "^0.4.6"
num-bigint = { version = "^0.2.2", optional = true }
num-bigint = "^0.2.2"
num-traits = "^0.2.6"
num_cpus = "^1.10.0"
png = "0.14.0"
ramp = { version = "0.5.1", optional = true }
threadpool = "^1.7.1"

8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
.PHONY: build-ramp dev integrate test

build-ramp:
cargo +nightly build --no-default-features --features backend-ramp
.PHONY: dev integrate test

dev:
rustup component add rustfmt
rustup toolchain install nightly

integrate:
./integrate/check

test:
cargo fmt -- --check
./test/check
cargo test --locked
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ Search for integers with high multiplicative persistence values.

This project uses the standard `rustup` and `cargo` toolchain. Originally tested against `rustc 1.33.0`.

By default the library uses `num-bigint` internally. This can be swapped for `ramp` as a dependency by specifying:

```
multiplicative-persistence = { version = "*", features = ["backend-ramp"], default-features = false }
```

Or as a binary by building with:

```bash
cargo +nightly build --no-default-features --features backend-ramp
```

## Usage

Build binaries with `cargo build --release --bins`, they will be output in `target/release`:
Expand Down
48 changes: 0 additions & 48 deletions src/backend/backend_num_bigint.rs

This file was deleted.

48 changes: 0 additions & 48 deletions src/backend/backend_ramp.rs

This file was deleted.

Loading

0 comments on commit 6e321e6

Please sign in to comment.