Extract core stuff into own crates
This commit extracts five new crates:
- nu-source, which contains the core source-code handling logic in Nu,
including Text, Span, and also the pretty.rs-based debug logic
- nu-parser, which is the parser and expander logic
- nu-protocol, which is the bulk of the types and basic conveniences
used by plugins
- nu-errors, which contains ShellError, ParseError and error handling
conveniences
- nu-textview, which is the textview plugin extracted into a crate
One of the major consequences of this refactor is that it's no longer
possible to `impl X for Spanned<Y>` outside of the `nu-source` crate, so
a lot of types became more concrete (Value became a concrete type
instead of Spanned<Value>, for example).
This also turned a number of inherent methods in the main nu crate into
plain functions (impl Value {} became a bunch of functions in the
`value` namespace in `crate::data::value`).
2019-11-26 03:30:48 +01:00
|
|
|
#[macro_use]
|
|
|
|
mod macros;
|
|
|
|
|
|
|
|
mod call_info;
|
2021-03-31 07:52:34 +02:00
|
|
|
pub mod config_path;
|
2020-04-13 09:59:57 +02:00
|
|
|
pub mod hir;
|
Extract core stuff into own crates
This commit extracts five new crates:
- nu-source, which contains the core source-code handling logic in Nu,
including Text, Span, and also the pretty.rs-based debug logic
- nu-parser, which is the parser and expander logic
- nu-protocol, which is the bulk of the types and basic conveniences
used by plugins
- nu-errors, which contains ShellError, ParseError and error handling
conveniences
- nu-textview, which is the textview plugin extracted into a crate
One of the major consequences of this refactor is that it's no longer
possible to `impl X for Spanned<Y>` outside of the `nu-source` crate, so
a lot of types became more concrete (Value became a concrete type
instead of Spanned<Value>, for example).
This also turned a number of inherent methods in the main nu crate into
plain functions (impl Value {} became a bunch of functions in the
`value` namespace in `crate::data::value`).
2019-11-26 03:30:48 +01:00
|
|
|
mod maybe_owned;
|
|
|
|
mod return_value;
|
|
|
|
mod signature;
|
|
|
|
mod syntax_shape;
|
|
|
|
mod type_name;
|
2019-12-04 22:14:52 +01:00
|
|
|
mod type_shape;
|
2020-10-29 21:51:48 +01:00
|
|
|
pub mod value;
|
Extract core stuff into own crates
This commit extracts five new crates:
- nu-source, which contains the core source-code handling logic in Nu,
including Text, Span, and also the pretty.rs-based debug logic
- nu-parser, which is the parser and expander logic
- nu-protocol, which is the bulk of the types and basic conveniences
used by plugins
- nu-errors, which contains ShellError, ParseError and error handling
conveniences
- nu-textview, which is the textview plugin extracted into a crate
One of the major consequences of this refactor is that it's no longer
possible to `impl X for Spanned<Y>` outside of the `nu-source` crate, so
a lot of types became more concrete (Value became a concrete type
instead of Spanned<Value>, for example).
This also turned a number of inherent methods in the main nu crate into
plain functions (impl Value {} became a bunch of functions in the
`value` namespace in `crate::data::value`).
2019-11-26 03:30:48 +01:00
|
|
|
|
2021-05-12 03:01:31 +02:00
|
|
|
#[cfg(feature = "dataframe")]
|
|
|
|
pub mod dataframe;
|
|
|
|
|
Extract core stuff into own crates
This commit extracts five new crates:
- nu-source, which contains the core source-code handling logic in Nu,
including Text, Span, and also the pretty.rs-based debug logic
- nu-parser, which is the parser and expander logic
- nu-protocol, which is the bulk of the types and basic conveniences
used by plugins
- nu-errors, which contains ShellError, ParseError and error handling
conveniences
- nu-textview, which is the textview plugin extracted into a crate
One of the major consequences of this refactor is that it's no longer
possible to `impl X for Spanned<Y>` outside of the `nu-source` crate, so
a lot of types became more concrete (Value became a concrete type
instead of Spanned<Value>, for example).
This also turned a number of inherent methods in the main nu crate into
plain functions (impl Value {} became a bunch of functions in the
`value` namespace in `crate::data::value`).
2019-11-26 03:30:48 +01:00
|
|
|
pub use crate::call_info::{CallInfo, EvaluatedArgs};
|
2021-03-31 07:52:34 +02:00
|
|
|
pub use crate::config_path::ConfigPath;
|
Extract core stuff into own crates
This commit extracts five new crates:
- nu-source, which contains the core source-code handling logic in Nu,
including Text, Span, and also the pretty.rs-based debug logic
- nu-parser, which is the parser and expander logic
- nu-protocol, which is the bulk of the types and basic conveniences
used by plugins
- nu-errors, which contains ShellError, ParseError and error handling
conveniences
- nu-textview, which is the textview plugin extracted into a crate
One of the major consequences of this refactor is that it's no longer
possible to `impl X for Spanned<Y>` outside of the `nu-source` crate, so
a lot of types became more concrete (Value became a concrete type
instead of Spanned<Value>, for example).
This also turned a number of inherent methods in the main nu crate into
plain functions (impl Value {} became a bunch of functions in the
`value` namespace in `crate::data::value`).
2019-11-26 03:30:48 +01:00
|
|
|
pub use crate::maybe_owned::MaybeOwned;
|
|
|
|
pub use crate::return_value::{CommandAction, ReturnSuccess, ReturnValue};
|
|
|
|
pub use crate::signature::{NamedType, PositionalType, Signature};
|
|
|
|
pub use crate::syntax_shape::SyntaxShape;
|
|
|
|
pub use crate::type_name::{PrettyType, ShellTypeName, SpannedTypeName};
|
2019-12-04 22:14:52 +01:00
|
|
|
pub use crate::type_shape::{Row as RowType, Type};
|
2020-09-29 05:32:29 +02:00
|
|
|
pub use crate::value::column_path::{ColumnPath, PathMember, UnspannedPathMember};
|
2019-12-04 20:52:31 +01:00
|
|
|
pub use crate::value::dict::{Dictionary, TaggedDictBuilder};
|
2020-09-29 05:32:29 +02:00
|
|
|
pub use crate::value::did_you_mean::did_you_mean;
|
Extract core stuff into own crates
This commit extracts five new crates:
- nu-source, which contains the core source-code handling logic in Nu,
including Text, Span, and also the pretty.rs-based debug logic
- nu-parser, which is the parser and expander logic
- nu-protocol, which is the bulk of the types and basic conveniences
used by plugins
- nu-errors, which contains ShellError, ParseError and error handling
conveniences
- nu-textview, which is the textview plugin extracted into a crate
One of the major consequences of this refactor is that it's no longer
possible to `impl X for Spanned<Y>` outside of the `nu-source` crate, so
a lot of types became more concrete (Value became a concrete type
instead of Spanned<Value>, for example).
This also turned a number of inherent methods in the main nu crate into
plain functions (impl Value {} became a bunch of functions in the
`value` namespace in `crate::data::value`).
2019-11-26 03:30:48 +01:00
|
|
|
pub use crate::value::primitive::Primitive;
|
2020-01-11 21:49:20 +01:00
|
|
|
pub use crate::value::primitive::{format_date, format_duration, format_primitive};
|
2019-12-04 22:14:52 +01:00
|
|
|
pub use crate::value::range::{Range, RangeInclusion};
|
2021-01-10 03:50:49 +01:00
|
|
|
pub use crate::value::value_structure::{ValueResource, ValueStructure};
|
2020-03-08 06:33:30 +01:00
|
|
|
pub use crate::value::{merge_descriptors, UntaggedValue, Value};
|