Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ doctest = false
[dependencies]
rayon = { version = "1", optional = true }
serde = { version = "1", optional = true }
nonmax = { version = "0.5", optional = true }
13 changes: 12 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@
//!
//! Yes, but only if you turn on the `serialize` feature.
//!
//! #### Does it support NonMaxU32?
//!
//! Yes! With the `nonmax` feature enabled, you can use the `define_nonmax_index_type!` macro
//! to create index types backed by `NonMaxU32` from the `nonmax` crate. This is useful for
//! memory-efficient `Option<Index>` representations.
//!
//! ```rust,ignore
//! oxc_index::define_nonmax_index_type! {
//! pub struct MyIndex;
//! }
//! ```
//!
//! #### What features are planned?
//!
//! Planned is a bit strong but here are the things I would find useful.
Expand All @@ -125,7 +137,6 @@
//! - Allow use of indices for string types (the primary benefit here would
//! probably be the ability to e.g. use u32 without too much pain rather than
//! mixing up indices from different strings -- but you never know!)
//! - Allow index types such as NonZeroU32 and such, if it can be done sanely.
//! - ...
//!
#![allow(clippy::inline_always)]
Expand Down
Loading