Update rusty-value

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/3/head
trivernis 2 years ago
parent 074005f503
commit f2b76b3b3f
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1,6 +1,6 @@
[package] [package]
name = "embed-nu" name = "embed-nu"
version = "0.1.0" version = "0.1.1"
edition = "2021" edition = "2021"
license = "Apache-2.0" license = "Apache-2.0"
repository = "https://github.com/Trivernis/embed-nu" repository = "https://github.com/Trivernis/embed-nu"
@ -15,5 +15,5 @@ nu-engine = "0.69.1"
nu-parser = "0.69.1" nu-parser = "0.69.1"
nu-protocol = "0.69.1" nu-protocol = "0.69.1"
paste = "1.0.9" paste = "1.0.9"
rusty-value = { version = "0.2.1", features = ["derive"] } rusty-value = { version = "0.3.0", features = ["derive"] }
thiserror = "1.0.37" thiserror = "1.0.37"

@ -37,6 +37,7 @@ impl HashableIntoString for HashableValue {
.map(|v| v.into_string()) .map(|v| v.into_string())
.collect::<Vec<_>>() .collect::<Vec<_>>()
.join(","), .join(","),
HashableValue::None => String::new(),
} }
} }
} }
@ -97,6 +98,9 @@ impl RustyIntoValue for rusty_value::Value {
span: Span::empty(), span: Span::empty(),
} }
} }
rusty_value::Value::None => Value::Nothing {
span: Span::empty(),
},
} }
} }
} }

@ -11,6 +11,7 @@ pub use context::{CommandGroupConfig, Context, ContextBuilder};
pub use into_value::*; pub use into_value::*;
pub use nu_protocol::PipelineData; pub use nu_protocol::PipelineData;
pub use rusty_value; pub use rusty_value;
pub use rusty_value::RustyValue;
pub use utils::NewEmpty; pub use utils::NewEmpty;
pub type Error = error::CrateError; pub type Error = error::CrateError;

@ -1,4 +1,4 @@
use embed_nu::{rusty_value::RustyValue, CommandGroupConfig, Context, NewEmpty, PipelineData}; use embed_nu::{CommandGroupConfig, Context, NewEmpty, PipelineData, RustyValue};
#[test] #[test]
fn it_evals_strings() { fn it_evals_strings() {

Loading…
Cancel
Save