Skip to content

Commit

Permalink
fix naming and reorganize examples
Browse files Browse the repository at this point in the history
  • Loading branch information
SFBdragon committed Apr 13, 2024
1 parent b711a0a commit 4870052
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ members = [
"talc",
"benchmarks",
"fuzz",
"std_examples",
"stable_examples",
"wasm-perf",
"wasm-size",
]
Expand Down
16 changes: 16 additions & 0 deletions stable_examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "stable_examples"
version = "0.0.0"
edition = "2021"
publish = false

[dev-dependencies]
allocator-api2 = "0.2.18"
spin = "0.9.8"

# put talc into a stable-compatible configuration
# TODO: make talc's features stable-by-default
[dev-dependencies.talc]
path = "../talc"
default-features = false
features = ["lock_api", "allocator-api2"]
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ use allocator_api2::vec::Vec;

// This uses the `allocator-api2` crate to compile successfully on stable Rust.

// Run with:
// `cargo +stable run -p stable_examples --example stable_allocator_api`

fn main() {
// Establish some memory for the allocator.
let mut arena = [0u8; 10000];
Expand Down
File renamed without changes.
22 changes: 0 additions & 22 deletions std_examples/Cargo.toml

This file was deleted.

0 comments on commit 4870052

Please sign in to comment.