Change how rusty value is re-exported and used

pull/3/head
trivernis 2 years ago
parent 3fa343d26c
commit aac17a0226
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1,6 +1,6 @@
[package] [package]
name = "embed-nu" name = "embed-nu"
version = "0.2.6" version = "0.3.0"
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.5.0", features = ["derive"] } rusty-value = { version = "0.5.1", features = ["derive"] }
thiserror = "1.0.37" thiserror = "1.0.37"

@ -11,7 +11,7 @@ calls to nu don't have the overhead of calling an external application.
## Example Usage ## Example Usage
```rust ```rust
use embed_nu::{RustyValue, CommandGroupConfig, Context, NewEmpty, PipelineData}; use embed_nu::{rusty_value::*, CommandGroupConfig, Context, NewEmpty, PipelineData};
fn main() { fn main() {
let mut ctx = Context::builder() 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. data type into nu values.
```rust ```rust
use embed_nu::{RustyValue, IntoValue}; use embed_nu::{rusty_value::*, IntoValue};
// derive rusty value // derive rusty value

@ -12,7 +12,6 @@ pub use into_expression::*;
pub use into_value::*; pub use into_value::*;
pub use nu_protocol::{PipelineData, Value}; pub use nu_protocol::{PipelineData, Value};
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,5 @@
use embed_nu::{CommandGroupConfig, Context, NewEmpty, PipelineData, RustyValue}; use embed_nu::rusty_value::*;
use embed_nu::{CommandGroupConfig, Context, NewEmpty, PipelineData};
#[test] #[test]
fn it_evals_strings() { fn it_evals_strings() {

@ -1,6 +1,5 @@
use embed_nu::IntoValue; use embed_nu::IntoValue;
use nu_protocol::Value; use rusty_value::*;
use rusty_value::RustyValue;
use std::{mem, path::PathBuf}; use std::{mem, path::PathBuf};
#[derive(RustyValue, Debug, Clone)] #[derive(RustyValue, Debug, Clone)]

Loading…
Cancel
Save