Skip to content

Commit

Permalink
Merge branch 'matthias/flat-structure-again' into matthias/ceno_host
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasgoergens committed Dec 13, 2024
2 parents 5a95f70 + 0d2e317 commit 77df864
Show file tree
Hide file tree
Showing 24 changed files with 115 additions and 36 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",
"ceno_host",
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.

18 changes: 10 additions & 8 deletions guest/Cargo.toml → ceno_rt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
[workspace]
members = ["examples", "ceno_rt"]
resolver = "2"

[workspace.package]
[package]
categories = ["cryptography", "zk", "blockchain", "ceno"]
description = "Ceno runtime library"
edition = "2021"
keywords = ["cryptography", "zk", "blockchain", "ceno"]
license = "MIT OR Apache-2.0"
readme = "../README.md"
name = "ceno_rt"
readme = "README.md"
repository = "https://github.com/scroll-tech/ceno"
version = "0.1.0"

[profile.release]
lto = "thin"
[dependencies]
riscv = "0.12"
rkyv = { version = "0.8", default-features = false, features = [
"alloc",
"bytecheck",
] }
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.
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 @@ -27,7 +27,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 @@ -42,11 +42,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
File renamed without changes.
12 changes: 6 additions & 6 deletions guest/examples/Cargo.toml → examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
categories.workspace = true
categories = ["cryptography", "zk", "blockchain", "ceno"]
description = "Ceno RiscV guest examples"
edition.workspace = true
keywords.workspace = true
license.workspace = true
edition = "2021"
keywords = ["cryptography", "zk", "blockchain", "ceno"]
license = "MIT OR Apache-2.0"
name = "examples"
readme = "README.md"
repository.workspace = true
version.workspace = true
repository = "https://github.com/scroll-tech/ceno"
version = "0.1.0"

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

This file was deleted.

0 comments on commit 77df864

Please sign in to comment.