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]
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"

@ -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

@ -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;

@ -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() {

@ -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)]

Loading…
Cancel
Save