Skip to content

Commit

Permalink
Reshuffle crates
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens committed Dec 13, 2024
1 parent 0a64371 commit 4d8f924
Show file tree
Hide file tree
Showing 23 changed files with 225 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
exclude = ["guest"]
exclude = ["ceno_rt", "examples"]
members = [
"ceno_emul",
"examples-builder",
Expand Down
File renamed without changes.
93 changes: 93 additions & 0 deletions ceno_rt/Cargo.lock

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

13 changes: 13 additions & 0 deletions ceno_rt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
categories = ["cryptography", "zk", "blockchain", "ceno"]
description = "Ceno runtime library"
edition = "2021"
keywords = ["cryptography", "zk", "blockchain", "ceno"]
license = "MIT OR Apache-2.0"
name = "ceno_rt"
readme = "README.md"
repository = "https://github.com/scroll-tech/ceno"
version = "0.1.0"

[dependencies]
riscv = "0.12"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions examples-builder/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn build_elfs() {
// See git history for an attempt to do this.
let output = Command::new("cargo")
.args(["build", "--release", "--examples"])
.current_dir("../guest/examples")
.current_dir("../examples")
.env_clear()
.envs(std::env::vars().filter(|x| !x.0.starts_with("CARGO_")))
.output()
Expand All @@ -41,11 +41,11 @@ fn build_elfs() {
dest,
r#"#[allow(non_upper_case_globals)]
pub const {example}: &[u8] =
include_bytes!(r"{CARGO_MANIFEST_DIR}/../guest/target/riscv32im-unknown-none-elf/release/examples/{example}");"#
include_bytes!(r"{CARGO_MANIFEST_DIR}/../examples/target/riscv32im-unknown-none-elf/release/examples/{example}");"#
).expect("failed to write vars.rs");
}
let input_path = "../guest/";
let elfs_path = "../guest/target/riscv32im-unknown-none-elf/release/examples/";
let input_path = "../examples/";
let elfs_path = "../examples/target/riscv32im-unknown-none-elf/release/examples/";

println!("cargo:rerun-if-changed={input_path}");
println!("cargo:rerun-if-changed={elfs_path}");
Expand Down
1 change: 1 addition & 0 deletions examples/.cargo/config.toml
100 changes: 100 additions & 0 deletions examples/Cargo.lock

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

13 changes: 13 additions & 0 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
categories = ["cryptography", "zk", "blockchain", "ceno"]
description = "Ceno RiscV guest examples"
edition = "2021"
keywords = ["cryptography", "zk", "blockchain", "ceno"]
license = "MIT OR Apache-2.0"
name = "examples"
readme = "README.md"
repository = "https://github.com/scroll-tech/ceno"
version = "0.1.0"

[dependencies]
ceno_rt = { path = "../ceno_rt" }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 0 additions & 13 deletions guest/ceno_rt/Cargo.toml

This file was deleted.

13 changes: 0 additions & 13 deletions guest/examples/Cargo.toml

This file was deleted.

0 comments on commit 4d8f924

Please sign in to comment.