Skip to content

Commit

Permalink
Merge pull request #1549 from alerque/organize-features
Browse files Browse the repository at this point in the history
Make it easier and more consistent to package for distros.

Thanks @alerque ! Out of curiosity, are you currently packaging qsv in a distro? Which one?
  • Loading branch information
jqnatividad authored Jan 18, 2024
2 parents 0f69178 + c366bd3 commit 3281fa5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ halfbrown = { git = "https://github.com/licenser/halfbrown", rev = "7cecc29422ae

[features]
default = ["mimalloc"]
all_features = [
distrib_features = [
"feature_capable",
"apply",
"fetch",
Expand All @@ -248,10 +248,13 @@ all_features = [
"luau",
"polars",
"python",
"self_update",
"to",
"to_parquet",
]
all_features = [
"distrib_features",
"self_update",
]
apply = [
"censor",
"cpc",
Expand Down
3 changes: 1 addition & 2 deletions docs/FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* `fetch` - enables the `fetch` & `fetchpost` commands.
* `foreach` - enable `foreach` command (not valid for Windows).
* `geocode` - enable `geocode` command.
* `generate` - enable `generate` command.
* `luau` - enable `luau` command. Embeds a [Luau](https://luau-lang.org) interpreter into qsv. [Luau has type-checking, sandboxing, additional language operators, increased performance & other improvements](https://luau-lang.org/2022/11/04/luau-origins-and-evolution.html) over Lua.
* `polars` - enables all [Polars](https://pola.rs)-powered commands (currently, `joinp` and `sqlp`). Note that Polars is a very powerful library, but it has a lot of dependencies that drastically increases both compile time and binary size.
* `python` - enable `py` command. Note that qsv will look for the shared library for the Python version (Python 3.7 & above supported) it was compiled against & will abort on startup if the library is not found, even if you're NOT using the `py` command. Check [Python](#python) section for more info.
Expand All @@ -19,7 +18,7 @@ Use the `sqlp` command with the `--format parquet` option instead if you don't n
It will NOT offer the choice to update itself to the prebuilt binaries published on GitHub. You need not worry that your manually built qsv will be overwritten by a self-update.

* `feature_capable` - enable to build `qsv` binary variant which is feature-capable.
* `all_features` - enable to build `qsv` binary variant with all features enabled (apply,fetch,foreach,generate,luau,polars,python,to,to_parquet,self_update).
* `all_features` - enable to build `qsv` binary variant with all features enabled (apply,fetch,foreach,luau,polars,python,to,to_parquet,self_update).
* `lite` - enable to build `qsvlite` binary variant with all features disabled.
* `datapusher_plus` - enable to build `qsvdp` binary variant - the [DataPusher+](https://github.com/dathere/datapusher-plus) optimized qsv binary.
* `nightly` - enable to turn on nightly/unstable features in the `rand`, `regex`, `hashbrown` & `pyo3` crates when building with Rust nightly/unstable.
Expand Down

0 comments on commit 3281fa5

Please sign in to comment.