Skip to content

Commit

Permalink
feat: add machine-emulator native bindings for Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
algebraic-dev committed Jan 23, 2024
1 parent e49e77d commit 31026dd
Show file tree
Hide file tree
Showing 20 changed files with 5,368 additions and 0 deletions.
1 change: 1 addition & 0 deletions machine-bindings/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
21 changes: 21 additions & 0 deletions machine-bindings/Cargo.lock

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

8 changes: 8 additions & 0 deletions machine-bindings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[workspace]

members = [
"cartesi-machine",
"cartesi-machine-sys",
]

resolver = "2"
7 changes: 7 additions & 0 deletions machine-bindings/cartesi-machine-sys/Cargo.lock

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

8 changes: 8 additions & 0 deletions machine-bindings/cartesi-machine-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "cartesi-machine-sys"
version = "0.15.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
3 changes: 3 additions & 0 deletions machine-bindings/cartesi-machine-sys/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# cartesi-machine-sys

This crate offers native bindings for the [cartesi emulator](https://github.com/cartesi/machine-emulator), enabling local manipulation of a Cartesi machine.
3 changes: 3 additions & 0 deletions machine-bindings/cartesi-machine-sys/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("cargo:rustc-link-lib=cartesi");
}
Loading

0 comments on commit 31026dd

Please sign in to comment.