Skip to content

Commit 89ef7bd

Browse files
committed
all crates:
optinal features are now working bumped version for new release tui/cli: now uisng parelel version of lib
1 parent c99aeb0 commit 89ef7bd

File tree

7 files changed

+35
-22
lines changed

7 files changed

+35
-22
lines changed

cargo-function-history/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo-function-history"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2021"
55
license = "MIT"
66
repository = "https://github.com/mendelsshop/git_function_history/tree/main/cargo-function-history"
@@ -10,13 +10,13 @@ description = "cargo frontend for git-function-history"
1010

1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1212

13-
# [features]
14-
# default = ["parallel"]
15-
# parallel = ["git_function_history/parallel", "function_history_backend_thread/parallel"]
16-
# not-parallel = ["git_function_history/default-features"]
13+
[features]
14+
default = ["parallel"]
15+
parallel = ["git_function_history/parallel", "function_history_backend_thread/parallel"]
16+
not-parallel = []
1717

1818
[dependencies]
19-
git_function_history = { path = "../git-function-history-lib", version = "0.6.0" }
19+
git_function_history = { path = "../git-function-history-lib", version = "0.6.2", default-features = false}
2020
lazy_static = "1.3.0"
2121
tui = { version = "0.19", features = ["crossterm"], default-features = false }
2222
crossterm = "0.25.0"
@@ -25,5 +25,5 @@ eyre = "0.6"
2525
dirs = "4.0.0"
2626
simple_file_logger = "0.2.0"
2727
log = "0.4"
28-
function_history_backend_thread = { path = "../function_history_backend_thread", version = "0.2.0"}
28+
function_history_backend_thread = { path = "../function_history_backend_thread", version = "0.2.2", default-features = false}
2929
tui-input = "0.5.1"

cargo-function-history/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ A cargo frontend for the [git function history library](https://crates.io/crates
1010

1111
cargo install cargo-function-history
1212

13+
Or if you don't want use parallelism:
14+
15+
cargo install cargo-function-history --no-default-features
16+
1317
## Usage
1418

1519
`cargo function-history <function-name<:filename>> <options>`
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "function_history_backend_thread"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2021"
55
license = "MIT"
66
repository = "https://github.com/mendelsshop/git_function_history/tree/main/function_history_backend_thread"
@@ -11,11 +11,11 @@ description = "threading and types for git-function-history"
1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1212

1313

14-
# [features]
15-
# default = ["parallel"]
16-
# parallel = ["git_function_history/parallel"]
17-
# not-parallel = []
14+
[features]
15+
default = ["parallel"]
16+
parallel = ["git_function_history/parallel"]
17+
not-parallel = []
1818

1919
[dependencies]
20-
git_function_history = { path = "../git-function-history-lib", version = "0.6.1" }
20+
git_function_history = { path = "../git-function-history-lib", version = "0.6.2", default-features = false}
2121
log = "0.4"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "git-function-history-gui"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
edition = "2021"
55
license = "MIT"
66
repository = "https://github.com/mendelsshop/git_function_history/tree/main/git-function-history-gui"
@@ -10,15 +10,15 @@ description = "GUI frontend for git-function-history"
1010

1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1212

13-
# [features]
14-
# default = ["parallel"]
15-
# parallel = ["git_function_history/parallel", "function_history_backend_thread/parallel"]
16-
# not-parallel = ["git_function_history/default-features"]
13+
[features]
14+
default = ["parallel"]
15+
parallel = ["git_function_history/parallel", "function_history_backend_thread/parallel"]
16+
not-parallel = []
1717

1818
[dependencies]
1919
eframe = {version = "0.19.0", features = ["dark-light"]}
20-
git_function_history = { path = "../git-function-history-lib", version = "0.6.0" }
21-
function_history_backend_thread = { path = "../function_history_backend_thread", version = "0.2.0"}
20+
git_function_history = { path = "../git-function-history-lib", version = "0.6.2", default-features = false}
21+
function_history_backend_thread = { path = "../function_history_backend_thread", version = "0.2.2", default-features = false}
2222
simple_file_logger = "0.2.0"
2323
log = "0.4.17"
2424
image = "0.24"

git-function-history-gui/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ A GUI frontend for the [git function history library](https://crates.io/crates/g
88

99
cargo install git-function-history-gui
1010

11+
or if you don't want to use parallelism:
12+
13+
cargo install git-function-history-gui --no-default-features
14+
1115
### Note
1216

1317
Under Linux you may need to install the following packages:

git-function-history-lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "git_function_history"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
edition = "2021"
55
license = "MIT"
66
repository = "https://github.com/mendelsshop/git_function_history/tree/main/git-function-history-lib"

git-function-history-lib/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,9 @@
55

66
Show the git history of a function or method.
77
Use the latest (beta) version by putting `"git_function_history" = { git = 'https://github.com/mendelsshop/git_function_history' }` in your cargo.toml under `[dependencies]` section.
8-
Use the latest [crates.io](https://crates.io/crates/git_function_history) by putting `git_function_history = "0.6.1"` in your cargo.toml under `[dependencies]` section.
8+
Use the latest [crates.io](https://crates.io/crates/git_function_history) by putting `git_function_history = "0.6.2"` in your cargo.toml under `[dependencies]` section.
9+
10+
## features
11+
12+
- parallel: use rayon to parallelize the git log search
13+
- --no-default-features: disable parallelism

0 commit comments

Comments
 (0)