ok/jj
1
0
Fork 0
forked from mirrors/jj

cargo: enable the watchman feature by default

I think the feature is requested by enough users that we should
include it by default, also for people who install from source (we
include it in the `packaging` feature already).

It increases the size of the binary from 16.5 MiB to 17.8 MiB. I
suspect we'd see some of that increase in size soon anyway, as I'm
probably going to use Tokio for making async backend requests.
This commit is contained in:
Martin von Zweigbergk 2023-09-07 09:09:59 -07:00 committed by Martin von Zweigbergk
parent 1c8d27dc39
commit 70f6e0a452
3 changed files with 5 additions and 10 deletions

View file

@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
to limit the depth of the ancestor set. For example, use `jj log -r to limit the depth of the ancestor set. For example, use `jj log -r
'ancestors(@, 5)` to view the last 5 commits. 'ancestors(@, 5)` to view the last 5 commits.
* Support for the Watchman filesystem monitor is now bundled by default. Set
`core.fsmonitor = "watchman"` in your repo to enable.
### Fixed bugs ### Fixed bugs
## [0.9.0] - 2023-09-06 ## [0.9.0] - 2023-09-06

View file

@ -74,8 +74,8 @@ test-case = { workspace = true }
testutils = { workspace = true } testutils = { workspace = true }
[features] [features]
default = [] default = ["watchman"]
bench = ["dep:criterion"] bench = ["dep:criterion"]
packaging = ["watchman"] packaging = []
vendored-openssl = ["git2/vendored-openssl", "jj-lib/vendored-openssl"] vendored-openssl = ["git2/vendored-openssl", "jj-lib/vendored-openssl"]
watchman = ["jj-lib/watchman"] watchman = ["jj-lib/watchman"]

View file

@ -526,14 +526,6 @@ snapshots without having to rescan the entire working copy.
### Watchman ### Watchman
The [Watchman filesystem monitor](https://facebook.github.io/watchman/) is
currently only enabled if you compile jj with the `watchman` feature, such as
with the following invocation:
```shell
cargo install --git https://github.com/martinvonz/jj.git --locked --bin jj jj-cli --features watchman
```
To configure the Watchman filesystem monitor, set To configure the Watchman filesystem monitor, set
`core.fsmonitor = "watchman"`. Ensure that you have [installed the Watchman `core.fsmonitor = "watchman"`. Ensure that you have [installed the Watchman
executable on your system](https://facebook.github.io/watchman/docs/install). executable on your system](https://facebook.github.io/watchman/docs/install).