Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
parse
✓ use nu_parser::parse;
Parses a Nushell command string into an AST block.
use nu_parser::parse;
use nu_protocol::engine::StateWorkingSet;
fn main() {
let engine_state = nu_protocol::engine::EngineState::new();
let mut working_set = StateWorkingSet::new(&engine_state);
let (block, err) = parse(
&mut working_set,
None,
b"ls -la",
false,
&[],
);
println!("Parsed block: {:?}", block);
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.110.0latest on crates.io
Audit
Dependencies
No dependency data recorded yet.