Cargo Features
[dependencies]
logos = { version = "0.14.2", default-features = false, features = ["debug", "export_derive", "std", "forbid_unsafe"] }
- debug
-
Enables debug messages
Enables debug of optional logos-derive
- default = export_derive, std
-
These default features are set whenever
logos
is added without
somewhere in the dependency tree.default-features = false - export_derive default = logos-derive
-
Re-exports the
Logos
derive macro, so that end user only needs to import this crate anduse logos::Logos
to get both the trait and derive proc macro. - std default
-
Should the crate use the standard library?
- forbid_unsafe
-
Use safe alternatives for unsafe code (may impact performance)?
Enables forbid_unsafe of optional logos-derive
Affects
internal::LexerInternal.read_byte
,source::Source.read_byte
,source::Chunk.from_slice
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.