nushell/crates/nu-protocol
Wind 36909a2b73 use command: Don't create a variable with empty record if it doesn't define any constants (#14051)
# Description
Fixes: #13967

The key changes lays in `nu-protocol/src/module.rs`, when resolving
import pattern, nushell only needs to bring `$module` with a record
value if it defines any constants.

# User-Facing Changes
```nushell
module spam {}
use spam
```
Will no longer create a `$spam` variable with an empty record.

# Tests + Formatting
Adjusted some tests and added some tests.
2024-10-19 17:24:09 +02:00
..
src use command: Don't create a variable with empty record if it doesn't define any constants (#14051) 2024-10-19 17:24:09 +02:00
tests Refactor config updates (#13802) 2024-10-11 18:40:32 +02:00
Cargo.toml Revert PRs for 0.99.1 patch (#14119) 2024-10-18 02:51:14 +00:00
LICENSE Fix rest of license year ranges (#8727) 2023-04-04 09:03:29 +12:00
README.md Add nu-protocol 2021-09-02 13:29:43 +12:00

nu-protocol

The nu-protocol crate holds the definitions of structs/traits that are used throughout Nushell. This gives us one way to expose them to many other crates, as well as make these definitions available to each other, without causing mutually recursive dependencies.