Update nu

pull/3/head
trivernis 1 year ago
parent cf9086e4e1
commit 19c0094d4d
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -10,10 +10,10 @@ authors = ["trivernis <trivernis@proton.me>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
nu-command = "0.72.0"
nu-engine = "0.72.0"
nu-parser = "0.72.0"
nu-protocol = "0.72.0"
paste = "1.0.10"
nu-command = "0.75.0"
nu-engine = "0.75.0"
nu-parser = "0.75.0"
nu-protocol = "0.75.0"
paste = "1.0.11"
rusty-value = { version = "0.6.0", features = ["derive"] }
thiserror = "1.0.37"
thiserror = "1.0.38"

@ -334,7 +334,6 @@ pub fn bind_format_commands(engine_state: &mut EngineState) -> CrateResult<()> {
Use,
Upsert,
Where,
ToUrl,
ToXml,
ToYaml,
}
@ -386,7 +385,6 @@ pub fn bind_math_commands(engine_state: &mut EngineState) -> CrateResult<()> {
MathAbs,
MathAvg,
MathCeil,
MathEval,
MathFloor,
MathMax,
MathMedian,
@ -404,8 +402,6 @@ pub fn bind_math_commands(engine_state: &mut EngineState) -> CrateResult<()> {
pub fn bind_network_commands(engine_state: &mut EngineState) -> CrateResult<()> {
bind_commands! {
engine_state,
Fetch,
Post,
Url,
UrlParse,
Port,

@ -99,6 +99,7 @@ impl Context {
arguments: args,
redirect_stdout: true,
redirect_stderr: true,
parser_info: Vec::new(),
};
let data = nu_engine::eval_call(

@ -1,7 +1,7 @@
use nu_protocol::{
ast::Block,
engine::{EngineState, StateWorkingSet},
PipelineData, Span,
Span,
};
use crate::error::{CrateError, CrateResult};
@ -17,13 +17,6 @@ impl NewEmpty for Span {
}
}
impl NewEmpty for PipelineData {
#[inline]
fn empty() -> Self {
Self::new(Span::empty())
}
}
pub fn parse_nu_script(engine_state: &mut EngineState, contents: String) -> CrateResult<Block> {
let mut working_set = StateWorkingSet::new(&engine_state);
let (block, err) = nu_parser::parse(&mut working_set, None, &contents.into_bytes(), false, &[]);

@ -1,5 +1,5 @@
use embed_nu::{rusty_value::*, IntoValue};
use embed_nu::{CommandGroupConfig, Context, NewEmpty, PipelineData};
use embed_nu::{CommandGroupConfig, Context, PipelineData};
use nu_protocol::engine::Command;
use nu_protocol::{Config, Signature, SyntaxShape};

Loading…
Cancel
Save