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 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
nu-command = "0.72.0" nu-command = "0.75.0"
nu-engine = "0.72.0" nu-engine = "0.75.0"
nu-parser = "0.72.0" nu-parser = "0.75.0"
nu-protocol = "0.72.0" nu-protocol = "0.75.0"
paste = "1.0.10" paste = "1.0.11"
rusty-value = { version = "0.6.0", features = ["derive"] } 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, Use,
Upsert, Upsert,
Where, Where,
ToUrl,
ToXml, ToXml,
ToYaml, ToYaml,
} }
@ -386,7 +385,6 @@ pub fn bind_math_commands(engine_state: &mut EngineState) -> CrateResult<()> {
MathAbs, MathAbs,
MathAvg, MathAvg,
MathCeil, MathCeil,
MathEval,
MathFloor, MathFloor,
MathMax, MathMax,
MathMedian, 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<()> { pub fn bind_network_commands(engine_state: &mut EngineState) -> CrateResult<()> {
bind_commands! { bind_commands! {
engine_state, engine_state,
Fetch,
Post,
Url, Url,
UrlParse, UrlParse,
Port, Port,

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

@ -1,7 +1,7 @@
use nu_protocol::{ use nu_protocol::{
ast::Block, ast::Block,
engine::{EngineState, StateWorkingSet}, engine::{EngineState, StateWorkingSet},
PipelineData, Span, Span,
}; };
use crate::error::{CrateError, CrateResult}; 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> { pub fn parse_nu_script(engine_state: &mut EngineState, contents: String) -> CrateResult<Block> {
let mut working_set = StateWorkingSet::new(&engine_state); let mut working_set = StateWorkingSet::new(&engine_state);
let (block, err) = nu_parser::parse(&mut working_set, None, &contents.into_bytes(), false, &[]); 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::{rusty_value::*, IntoValue};
use embed_nu::{CommandGroupConfig, Context, NewEmpty, PipelineData}; use embed_nu::{CommandGroupConfig, Context, PipelineData};
use nu_protocol::engine::Command; use nu_protocol::engine::Command;
use nu_protocol::{Config, Signature, SyntaxShape}; use nu_protocol::{Config, Signature, SyntaxShape};

Loading…
Cancel
Save