Skip to content

Commit

Permalink
Remove sync code.
Browse files Browse the repository at this point in the history
Opened up API to implementing custom state referencing and inner
mutability which allows dependants to choose which syncronization
mechanism their use case would benefit most from.

Poisoning errors will cause reference getters to panic.

Signed-off-by: Tin Svagelj <[email protected]>
  • Loading branch information
Caellian committed Oct 19, 2023
1 parent cdecf17 commit 1073272
Show file tree
Hide file tree
Showing 33 changed files with 486 additions and 42,438 deletions.
12 changes: 3 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,13 @@ name = "ptr_metadata"
path = "examples/ptr_metadata.rs"
required-features = ["ptr_metadata"]

[dependencies]
spin = { version = "0.9", optional = true }

contiguous-mem_codegen = { path = "./codegen" }

[features]
default = ["sync_impl", "unsafe_impl", "ptr_metadata", "debug"]
default = ["unsafe_impl", "ptr_metadata", "debug"]

no_std = ["dep:spin"]
debug = []
no_std = [] # No-std support
debug = [] # Enable debug attributes

# Implementations
sync_impl = []
unsafe_impl = []

# Nightly features
Expand Down
18 changes: 0 additions & 18 deletions codegen/Cargo.toml

This file was deleted.

319 changes: 0 additions & 319 deletions codegen/src/impl_block.rs

This file was deleted.

16 changes: 0 additions & 16 deletions codegen/src/lib.rs

This file was deleted.

Loading

0 comments on commit 1073272

Please sign in to comment.