You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gate SQLite history behind existing sqlite feature (nushell#16682)
This PR gates the reedline SQLite history behind the top-level crate's
`sqlite` feature. Reedline already feature gates the SQLite history, but
currently Nushell always pulls it in anyways. Gating the reedline
`sqlite` feature behind Nushell's `sqlite` feature makes it possible to
build Nushell without pulling in SQLite at all, which can shave off a
couple seconds during compilation, especially for the test and release
profiles.
Here's the commands I used for testing:
```
cargo clean --release
cargo build --release --no-default-features --features plugin,rustls-tls,system-clipboard,trash-support
```
Here's the time the `cargo build` command took on my system (using the
default `.cargo/config.toml`)
* `main`: 2m 34s
* `sqlite-history-gate`: 2m 24s
Some of the `#[cfg(feature = "sqlite")]`s are pretty haphazard,
@cptpiepmatz you might have some better ideas on how to make it a bit
nicer and this may also conflict with your SQLite changes
## Release notes summary - What our users need to know
Nushell can now be built without pulling in SQLite as a dependency.
0 commit comments