diff options
| author | Conrad Ludgate <conrad.ludgate@truelayer.com> | 2022-04-22 21:14:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-22 20:14:23 +0000 |
| commit | 7436e4ff651b64d4019a59d04c30c414ae220403 (patch) | |
| tree | 3d5e35df1bce075ae04be63d76f9edc8cc17c6cb /Cargo.toml | |
| parent | History filter (#329) (diff) | |
| download | atuin-7436e4ff651b64d4019a59d04c30c414ae220403.zip | |
feature-flags (#328)
* use feature flags
* fmt
* fix features
* update ci
* fmt
Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
Diffstat (limited to 'Cargo.toml')
| -rw-r--r-- | Cargo.toml | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -29,9 +29,17 @@ atuin = { path = "/usr/bin/atuin" } [workspace] members = ["./atuin-client", "./atuin-server", "./atuin-common"] +[features] +# TODO(conradludgate) +# Currently, this keeps the same default built behaviour for v0.8 +# We should rethink this by the time we hit a new breaking change +default = ["sync", "server"] +sync = ["atuin-client/sync"] +server = ["atuin-server", "tracing-subscriber"] + [dependencies] -atuin-server = { path = "atuin-server", version = "0.8.1" } -atuin-client = { path = "atuin-client", version = "0.8.1" } +atuin-server = { path = "atuin-server", version = "0.8.1", optional = true } +atuin-client = { path = "atuin-client", version = "0.8.1", default-features = false } atuin-common = { path = "atuin-common", version = "0.8.1" } log = "0.4" @@ -59,7 +67,6 @@ clap_complete = "3.1.2" fs-err = "2.7" whoami = "1.1.2" - [dependencies.tracing-subscriber] version = "0.3" default-features = false @@ -69,8 +76,4 @@ features = [ "registry", "env-filter", ] - -[profile.release] -lto = "fat" -codegen-units = 1 -opt-level = 3 +optional = true |
