nushell/crates/nu-protocol/Cargo.toml

45 lines
1.3 KiB
TOML
Raw Normal View History

[package]
authors = ["The Nushell Project Developers"]
description = "Nushell's internal protocols, including its abstract syntax tree"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-protocol"
edition = "2021"
license = "MIT"
2020-07-05 22:12:44 +02:00
name = "nu-protocol"
version = "0.90.2"
2021-09-02 03:29:43 +02:00
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
bench = false
2021-09-02 03:29:43 +02:00
[dependencies]
nu-utils = { path = "../nu-utils", version = "0.90.2" }
nu-path = { path = "../nu-path", version = "0.90.2" }
nu-system = { path = "../nu-system", version = "0.90.2" }
byte-unit = { version = "5.1", features = [ "serde" ] }
Add custom datetime format through `strftime` strings (#9500) - improves usability of datetime's in displayed text - # Description Creates a config point for specifying long / short date time formats. Defaults to humanized as we have today. Provides for adding strftime formats into config.nu such as: ```nu datetime_format: { normal: "%Y-%m-%d %H:%M:%S" table: "%Y-%m-%d" } ``` Example: ```bash > $env.config.datetime_format ┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ normal ┃ %a, %d %b %Y %H:%M:%S %z ┃ ┃ table ┃ %m/%d/%y %I:%M:%S%p ┃ ┗━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━┛ > let a = (date now) > echo $a Thu, 22 Jun 2023 10:21:23 -0700 > echo [$a] ┏━━━┳━━━━━━━━━━━━━━━━━━━━━┓ ┃ 0 ┃ 06/22/23 10:21:23AM ┃ ┗━━━┻━━━━━━━━━━━━━━━━━━━━━┛ ``` # User-Facing Changes Any place converting a datetime to a user displayed value should be impacted. # Tests + Formatting - `cargo fmt --all -- --check` Done - `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect -A clippy::result_large_err` Done - `cargo test --workspace` Done - `cargo run -- crates/nu-std/tests/run.nu` Not done - doesn't seem to work ```bash > use toolkit.nu # or use an `env_change` hook to activate it automatically > toolkit check pr ``` - Done --------- Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com> Co-authored-by: Antoine Stevan <44101798+amtoine@users.noreply.github.com>
2023-06-23 22:05:04 +02:00
chrono = { version = "0.4", features = [ "serde", "std", "unstable-locales" ], default-features = false }
chrono-humanize = "0.2"
fancy-regex = "0.12"
indexmap = "2.2"
lru = "0.12"
Bump miette from 7.0.0 to 7.1.0 (#11892) Bumps [miette](https://github.com/zkat/miette) from 7.0.0 to 7.1.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/zkat/miette/releases">miette's releases</a>.</em></p> <blockquote> <h2>v7.1.0</h2> <h3>Features</h3> <ul> <li><strong>derive:</strong> enable more boxed types to be #[diagnostic_source] (<a href="https://redirect.github.com/zkat/miette/issues/338">#338</a>) (<a href="https://github.com/zkat/miette/commit/c2f06f6cca15cbdd083dbff3d46b7729056ac6a4">c2f06f6c</a>)</li> <li><strong>source:</strong> derive common traits for NamedSource, SourceSpan, and SourceOffset (<a href="https://redirect.github.com/zkat/miette/issues/340">#340</a>) (<a href="https://github.com/zkat/miette/commit/6f09250cca14561f07fba899a8e6d3c0df14230e">6f09250c</a>)</li> <li><strong>collection:</strong> add support for collection of labels (<a href="https://redirect.github.com/zkat/miette/issues/341">#341</a>) (<a href="https://github.com/zkat/miette/commit/03060245d816a53a33209e6b7e1c3c42948e9962">03060245</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>tests:</strong> revert test-breaking changes of e5c7ae4 (<a href="https://redirect.github.com/zkat/miette/issues/339">#339</a>) (<a href="https://github.com/zkat/miette/commit/6e829f8c0ce2fc7bb2fc4041e6a6072f12db1f71">6e829f8c</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/zkat/miette/blob/main/CHANGELOG.md">miette's changelog</a>.</em></p> <blockquote> <h2>7.1.0 (2024-02-16)</h2> <h3>Features</h3> <ul> <li><strong>derive:</strong> enable more boxed types to be #[diagnostic_source] (<a href="https://redirect.github.com/zkat/miette/issues/338">#338</a>) (<a href="https://github.com/zkat/miette/commit/c2f06f6cca15cbdd083dbff3d46b7729056ac6a4">c2f06f6c</a>)</li> <li><strong>source:</strong> derive common traits for NamedSource, SourceSpan, and SourceOffset (<a href="https://redirect.github.com/zkat/miette/issues/340">#340</a>) (<a href="https://github.com/zkat/miette/commit/6f09250cca14561f07fba899a8e6d3c0df14230e">6f09250c</a>)</li> <li><strong>collection:</strong> add support for collection of labels (<a href="https://redirect.github.com/zkat/miette/issues/341">#341</a>) (<a href="https://github.com/zkat/miette/commit/03060245d816a53a33209e6b7e1c3c42948e9962">03060245</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>tests:</strong> revert test-breaking changes of e5c7ae4 (<a href="https://redirect.github.com/zkat/miette/issues/339">#339</a>) (<a href="https://github.com/zkat/miette/commit/6e829f8c0ce2fc7bb2fc4041e6a6072f12db1f71">6e829f8c</a>)</li> </ul> <p><!-- raw HTML omitted --><!-- raw HTML omitted --></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/zkat/miette/commit/a18a6444d92cd1ada40bfd7e39b86f672c8a6924"><code>a18a644</code></a> chore: Release</li> <li><a href="https://github.com/zkat/miette/commit/dc77b0cb5b350c8405f4cbfd78033729d5f3c63c"><code>dc77b0c</code></a> docs: update changelog</li> <li><a href="https://github.com/zkat/miette/commit/03060245d816a53a33209e6b7e1c3c42948e9962"><code>0306024</code></a> feat(collection): add support for collection of labels (<a href="https://redirect.github.com/zkat/miette/issues/341">#341</a>)</li> <li><a href="https://github.com/zkat/miette/commit/6f09250cca14561f07fba899a8e6d3c0df14230e"><code>6f09250</code></a> feat(source): derive common traits for NamedSource, SourceSpan, and SourceOff...</li> <li><a href="https://github.com/zkat/miette/commit/c2f06f6cca15cbdd083dbff3d46b7729056ac6a4"><code>c2f06f6</code></a> feat(derive): enable more boxed types to be #[diagnostic_source] (<a href="https://redirect.github.com/zkat/miette/issues/338">#338</a>)</li> <li><a href="https://github.com/zkat/miette/commit/6e829f8c0ce2fc7bb2fc4041e6a6072f12db1f71"><code>6e829f8</code></a> fix(tests): revert test-breaking changes of e5c7ae4 (<a href="https://redirect.github.com/zkat/miette/issues/339">#339</a>)</li> <li>See full diff in <a href="https://github.com/zkat/miette/compare/miette-derive-v7.0.0...miette-derive-v7.1.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=miette&package-manager=cargo&previous-version=7.0.0&new-version=7.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-19 02:54:08 +01:00
miette = { version = "7.1", features = ["fancy-no-backtrace"] }
num-format = "0.4"
serde = { version = "1.0", default-features = false }
serde_json = { version = "1.0", optional = true }
thiserror = "1.0"
typetag = "0.2"
[features]
plugin = ["serde_json"]
[dev-dependencies]
serde_json = "1.0"
strum = "0.25"
strum_macros = "0.25"
nu-test-support = { path = "../nu-test-support", version = "0.90.2" }
rstest = "0.18"
[package.metadata.docs.rs]
all-features = true