Skip to content

Commit 856add4

Browse files
authored
Merge pull request #171 from anoma/xuyang/remove_nif
remove nif
2 parents c91c47c + b2cad17 commit 856add4

File tree

11 files changed

+0
-1153
lines changed

11 files changed

+0
-1153
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ We have the following feature flags in arm lib:
7878
| `bonsai` | | Enables RISC0 bonsai sdk |
7979
| `client` | | Enables RISC0 client sdk |
8080
| `cuda` | | Enables CUDA GPU acceleration for the prover. Requires CUDA toolkit to be installed. |
81-
| `nif` | | Enables Erlang/Elixir NIF (Native Implemented Function) bindings |
8281
| `aggregation_circuit` | | A specific feature for (pcd-based) aggregation circuits |
8382
| `aggregation` | `aggregation_circuit`, `transaction` | Enables proof aggregation (only succinct proofs can be aggregated) |
8483

@@ -93,9 +92,6 @@ arm = { version = "0.12.0", features = ["aggregation"] }
9392

9493
# Logic-circuit-only usage
9594
arm = { version = "0.12.0", default-features = false }
96-
97-
# Elixir Anoma SDK
98-
arm = { version = "0.12.0", features = ["nif"] }
9995
```
10096

10197

arm/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ rand = "0.8"
1616
bincode = "1.3.3"
1717
hex = "0.4"
1818
lazy_static = "1.5.0"
19-
rustler = { version = "0.36.2", optional = true }
2019
bytemuck = { version = "1.12", features = ["derive"] }
2120
thiserror = "2.0.6"
2221

@@ -28,7 +27,6 @@ slab = "0.4.11"
2827
default = ["transaction", "prove"]
2928
transaction = ["compliance_circuit", "dep:sha3"]
3029
compliance_circuit = []
31-
nif = ["dep:rustler"]
3230
prove = ["risc0-zkvm/prove"]
3331
bonsai = ["risc0-zkvm/bonsai"]
3432
cuda = ["risc0-zkvm/cuda"]

arm/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ pub mod nullifier_key;
2323
pub mod proving_system;
2424
pub mod resource;
2525
pub mod resource_logic;
26-
mod rustler_util;
2726
#[cfg(feature = "transaction")]
2827
pub mod transaction;
2928
pub mod utils;

arm/src/logic_instance.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
use risc0_zkvm::Digest;
2-
#[cfg(feature = "nif")]
3-
use rustler::NifStruct;
42
use serde::{Deserialize, Serialize};
53

64
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
7-
#[cfg_attr(feature = "nif", derive(NifStruct))]
8-
#[cfg_attr(feature = "nif", module = "Anoma.Arm.LogicInstance")]
95
pub struct LogicInstance {
106
pub tag: Digest,
117
pub is_consumed: bool,

arm/src/resource_logic.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ use crate::{
55
use risc0_zkvm::Digest;
66
use serde::{Deserialize, Serialize};
77

8-
#[cfg(feature = "nif")]
9-
use rustler::NifStruct;
10-
118
/// This is a trait for logic constraints implementation.
129
pub trait LogicCircuit: Default + Clone + Serialize + for<'de> Deserialize<'de> {
1310
// In general, it's implemented as `Self::default()`
@@ -20,8 +17,6 @@ pub trait LogicCircuit: Default + Clone + Serialize + for<'de> Deserialize<'de>
2017
}
2118

2219
#[derive(Clone, Default, Serialize, Deserialize)]
23-
#[cfg_attr(feature = "nif", derive(NifStruct))]
24-
#[cfg_attr(feature = "nif", module = "Anoma.Arm.TrivialLogicWitness")]
2520
pub struct TrivialLogicWitness {
2621
pub resource: Resource,
2722
pub action_tree_root: Digest,

0 commit comments

Comments
 (0)