mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 13:36:07 +02:00
Rust 1.85, edition=2024 (#15741)
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
name = "nu_plugin_custom_values"
|
||||
repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_custom_values"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
[[bin]]
|
||||
@ -16,4 +16,4 @@ serde = { workspace = true }
|
||||
typetag = "0.2"
|
||||
|
||||
[dev-dependencies]
|
||||
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.104.1" }
|
||||
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.104.1" }
|
||||
|
@ -1,6 +1,6 @@
|
||||
use nu_protocol::{
|
||||
ast::{self, Math, Operator},
|
||||
CustomValue, ShellError, Span, Type, Value,
|
||||
ast::{self, Math, Operator},
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::cmp::Ordering;
|
||||
|
@ -1,7 +1,7 @@
|
||||
use crate::CustomValuePlugin;
|
||||
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
|
||||
use nu_protocol::{
|
||||
record, Category, CustomValue, LabeledError, ShellError, Signature, Span, SyntaxShape, Value,
|
||||
Category, CustomValue, LabeledError, ShellError, Signature, Span, SyntaxShape, Value, record,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::{cool_custom_value::CoolCustomValue, CustomValuePlugin};
|
||||
use crate::{CustomValuePlugin, cool_custom_value::CoolCustomValue};
|
||||
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
|
||||
use nu_protocol::{Category, Example, LabeledError, Signature, Span, Value};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::{second_custom_value::SecondCustomValue, CustomValuePlugin};
|
||||
use crate::{CustomValuePlugin, second_custom_value::SecondCustomValue};
|
||||
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
|
||||
use nu_protocol::{Category, Example, LabeledError, Signature, Span, SyntaxShape, Value};
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
|
||||
use nu_protocol::{LabeledError, ShellError, Signature, Type, Value};
|
||||
|
||||
use crate::{handle_custom_value::HandleCustomValue, CustomValuePlugin};
|
||||
use crate::{CustomValuePlugin, handle_custom_value::HandleCustomValue};
|
||||
|
||||
pub struct HandleGet;
|
||||
|
||||
|
@ -3,7 +3,7 @@ use std::sync::atomic;
|
||||
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
|
||||
use nu_protocol::{LabeledError, Signature, Type, Value};
|
||||
|
||||
use crate::{handle_custom_value::HandleCustomValue, CustomValuePlugin};
|
||||
use crate::{CustomValuePlugin, handle_custom_value::HandleCustomValue};
|
||||
|
||||
pub struct HandleMake;
|
||||
|
||||
|
@ -2,10 +2,10 @@ use std::sync::atomic;
|
||||
|
||||
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
|
||||
use nu_protocol::{
|
||||
engine::Closure, LabeledError, ShellError, Signature, Spanned, SyntaxShape, Type, Value,
|
||||
LabeledError, ShellError, Signature, Spanned, SyntaxShape, Type, Value, engine::Closure,
|
||||
};
|
||||
|
||||
use crate::{handle_custom_value::HandleCustomValue, CustomValuePlugin};
|
||||
use crate::{CustomValuePlugin, handle_custom_value::HandleCustomValue};
|
||||
|
||||
pub struct HandleUpdate;
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
use std::{
|
||||
collections::BTreeMap,
|
||||
sync::{atomic::AtomicU64, Mutex},
|
||||
sync::{Mutex, atomic::AtomicU64},
|
||||
};
|
||||
|
||||
use handle_custom_value::HandleCustomValue;
|
||||
use nu_plugin::{serve_plugin, EngineInterface, MsgPackSerializer, Plugin, PluginCommand};
|
||||
use nu_plugin::{EngineInterface, MsgPackSerializer, Plugin, PluginCommand, serve_plugin};
|
||||
|
||||
mod cool_custom_value;
|
||||
mod handle_custom_value;
|
||||
|
@ -1,5 +1,5 @@
|
||||
use crate::{
|
||||
cool_custom_value::CoolCustomValue, second_custom_value::SecondCustomValue, CustomValuePlugin,
|
||||
CustomValuePlugin, cool_custom_value::CoolCustomValue, second_custom_value::SecondCustomValue,
|
||||
};
|
||||
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
|
||||
use nu_protocol::{Category, Example, LabeledError, ShellError, Signature, Span, Value};
|
||||
|
@ -1,4 +1,4 @@
|
||||
use crate::{update::Update, CustomValuePlugin};
|
||||
use crate::{CustomValuePlugin, update::Update};
|
||||
use nu_plugin::{EngineInterface, EvaluatedCall, SimplePluginCommand};
|
||||
use nu_protocol::{Category, LabeledError, Signature, SyntaxShape, Value};
|
||||
|
||||
|
Reference in New Issue
Block a user