diff --git a/Cargo.toml b/Cargo.toml index 4657932..b95c8aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "embed-nu" -version = "0.1.0" +version = "0.1.1" edition = "2021" license = "Apache-2.0" repository = "https://github.com/Trivernis/embed-nu" @@ -15,5 +15,5 @@ nu-engine = "0.69.1" nu-parser = "0.69.1" nu-protocol = "0.69.1" paste = "1.0.9" -rusty-value = { version = "0.2.1", features = ["derive"] } +rusty-value = { version = "0.3.0", features = ["derive"] } thiserror = "1.0.37" diff --git a/src/into_value.rs b/src/into_value.rs index 6c94420..6989a20 100644 --- a/src/into_value.rs +++ b/src/into_value.rs @@ -37,6 +37,7 @@ impl HashableIntoString for HashableValue { .map(|v| v.into_string()) .collect::>() .join(","), + HashableValue::None => String::new(), } } } @@ -97,6 +98,9 @@ impl RustyIntoValue for rusty_value::Value { span: Span::empty(), } } + rusty_value::Value::None => Value::Nothing { + span: Span::empty(), + }, } } } diff --git a/src/lib.rs b/src/lib.rs index ab8bf88..703b63e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,6 +11,7 @@ pub use context::{CommandGroupConfig, Context, ContextBuilder}; pub use into_value::*; pub use nu_protocol::PipelineData; pub use rusty_value; +pub use rusty_value::RustyValue; pub use utils::NewEmpty; pub type Error = error::CrateError; diff --git a/tests/test_eval.rs b/tests/test_eval.rs index e76ae32..0a5a679 100644 --- a/tests/test_eval.rs +++ b/tests/test_eval.rs @@ -1,4 +1,4 @@ -use embed_nu::{rusty_value::RustyValue, CommandGroupConfig, Context, NewEmpty, PipelineData}; +use embed_nu::{CommandGroupConfig, Context, NewEmpty, PipelineData, RustyValue}; #[test] fn it_evals_strings() {