Skip to content

Use traits to control if collectors are singletons or thread safe

Pre-release
Pre-release
Compare
Choose a tag to compare
@Techcable Techcable released this 29 Dec 19:52
· 175 commits to master since this release
9b191c9

Now the zerogc-context crate can support singleton and multi-instance collectors in the same compilation. Likewise, it can also support thread-safe and thread-unsafe collectors in the same compilation. The simple implementation is still controlled by cfg-features but this is a step in the right direction.

  • Implement Trace and GcSafe for String
    • I cant believe I missed this -_-
  • [derive] Support ignoring parameters for #[derive(Trace)]
  • [derive] Support deriving NullTrace via #[zerogc(nop_trace)] attribute