Skip to content

Commit

Permalink
try convert it into a workspace (remove the fuzz-workspace level). wo…
Browse files Browse the repository at this point in the history
…n't work
  • Loading branch information
jayz22 committed Nov 2, 2023
1 parent 0b2d2d3 commit 9c4f48a
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 1,123 deletions.

Large diffs are not rendered by default.

17 changes: 14 additions & 3 deletions soroban-fuzz-host/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
[package]
name = "soroban-fuzz-host"
version.workspace = true
version = "0.0.0"
description = "Collection of fuzzing targets for soroban host, do not publish"
edition = "2021"
publish = false
rust-version = "1.71"

[features]
next = []
[workspace]
members = [
"debug_logging",
]

[profile.release]
debug = 1

[workspace.dependencies]
soroban-env-common ={ path = "../soroban-env-common"}
soroban-env-host ={ path = "../soroban-env-host"}
soroban-synth-wasm ={ path = "../soroban-synth-wasm"}
arbitrary = { version = "1.3.0", features = ["derive"] }
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
[package]
name = "fuzz_debug_logging"
name = "debug_logging"
version = "0.0.0"
authors = ["Stellar Development Foundation <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
publish = false
rust-version = "1.65"

[lib]
crate-type = ["cdylib", "rlib"]
doctest = false

[dependencies]
soroban-sdk = { workspace = true, features = ["testutils"]}
soroban-env-common = { workspace = true }
soroban-env-host = { workspace = true, features = ["next", "testutils"] }
soroban-env-host = { workspace = true, features = ["testutils"] }
soroban-synth-wasm = { workspace = true }

[features]
next = ["soroban-env-common/next"]
arbitrary ={ workspace = true }
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,3 @@ pub fn wasm_module_with_linear_memory_logging() -> Vec<u8> {
// fe.push(Symbol::try_from_small_str("pass").unwrap());
fe.finish_and_export("test").finish()
}

#[test]
fn test()
{
let wasm = wasm_module_with_linear_memory_logging();
let host = Host::test_host_with_recording_footprint();
host.enable_debug().unwrap();
let contract_id_obj = host.register_test_contract_wasm(wasm.as_slice());

host.as_budget().reset_limits(2_000_000, 500_000).unwrap();
let res = host.call(
contract_id_obj,
Symbol::try_from_small_str("test").unwrap(),
host.test_vec_obj(&[0_u32, 10_u32, 0_u32, 10_u32]).unwrap(),
).unwrap();
}
40 changes: 0 additions & 40 deletions soroban-fuzz-host/fuzz-workspace/Cargo.toml

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 9c4f48a

Please sign in to comment.