From aac17a02262a535ca452b858066e53961eaa05f8 Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 12 Oct 2022 22:24:23 +0200 Subject: [PATCH] Change how rusty value is re-exported and used --- Cargo.toml | 4 ++-- README.md | 4 ++-- src/lib.rs | 1 - tests/test_eval.rs | 3 ++- tests/test_value.rs | 3 +-- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index efa70d7..195b3d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "embed-nu" -version = "0.2.6" +version = "0.3.0" 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.5.0", features = ["derive"] } +rusty-value = { version = "0.5.1", features = ["derive"] } thiserror = "1.0.37" diff --git a/README.md b/README.md index c9addd6..c86923a 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ calls to nu don't have the overhead of calling an external application. ## Example Usage ```rust -use embed_nu::{RustyValue, CommandGroupConfig, Context, NewEmpty, PipelineData}; +use embed_nu::{rusty_value::*, CommandGroupConfig, Context, NewEmpty, PipelineData}; fn main() { let mut ctx = Context::builder() @@ -57,7 +57,7 @@ This crate uses [rusty-value](https://github.com/Trivernis/rusty-value) to conve data type into nu values. ```rust -use embed_nu::{RustyValue, IntoValue}; +use embed_nu::{rusty_value::*, IntoValue}; // derive rusty value diff --git a/src/lib.rs b/src/lib.rs index ea78a86..973eb26 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,6 @@ pub use into_expression::*; pub use into_value::*; pub use nu_protocol::{PipelineData, Value}; 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 0a5a679..910867c 100644 --- a/tests/test_eval.rs +++ b/tests/test_eval.rs @@ -1,4 +1,5 @@ -use embed_nu::{CommandGroupConfig, Context, NewEmpty, PipelineData, RustyValue}; +use embed_nu::rusty_value::*; +use embed_nu::{CommandGroupConfig, Context, NewEmpty, PipelineData}; #[test] fn it_evals_strings() { diff --git a/tests/test_value.rs b/tests/test_value.rs index 453ce7f..da7be3f 100644 --- a/tests/test_value.rs +++ b/tests/test_value.rs @@ -1,6 +1,5 @@ use embed_nu::IntoValue; -use nu_protocol::Value; -use rusty_value::RustyValue; +use rusty_value::*; use std::{mem, path::PathBuf}; #[derive(RustyValue, Debug, Clone)]