Pin AW dependencies to a specific revision

This commit is contained in:
Demmie 2023-05-14 22:02:35 -04:00
parent 78c66181b1
commit ab3fd1c96f
No known key found for this signature in database
GPG Key ID: B06DAA3D432C6E9A
3 changed files with 34 additions and 16 deletions

34
Cargo.lock generated
View File

@ -346,9 +346,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]] [[package]]
name = "aw-client-rust" name = "aw-client-rust"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/ActivityWatch/aw-server-rust.git#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5" source = "git+https://github.com/ActivityWatch/aw-server-rust#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5"
dependencies = [ dependencies = [
"aw-models", "aw-models 0.1.0 (git+https://github.com/ActivityWatch/aw-server-rust)",
"chrono", "chrono",
"gethostname 0.4.1", "gethostname 0.4.1",
"reqwest", "reqwest",
@ -359,10 +359,10 @@ dependencies = [
[[package]] [[package]]
name = "aw-datastore" name = "aw-datastore"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/ActivityWatch/aw-server-rust.git#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5" source = "git+https://github.com/ActivityWatch/aw-server-rust.git?rev=49b2026#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5"
dependencies = [ dependencies = [
"appdirs", "appdirs",
"aw-models", "aw-models 0.1.0 (git+https://github.com/ActivityWatch/aw-server-rust.git?rev=49b2026)",
"aw-transform", "aw-transform",
"chrono", "chrono",
"log", "log",
@ -375,7 +375,19 @@ dependencies = [
[[package]] [[package]]
name = "aw-models" name = "aw-models"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/ActivityWatch/aw-server-rust.git#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5" source = "git+https://github.com/ActivityWatch/aw-server-rust.git?rev=49b2026#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5"
dependencies = [
"chrono",
"log",
"schemars",
"serde",
"serde_json",
]
[[package]]
name = "aw-models"
version = "0.1.0"
source = "git+https://github.com/ActivityWatch/aw-server-rust#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5"
dependencies = [ dependencies = [
"chrono", "chrono",
"log", "log",
@ -387,10 +399,10 @@ dependencies = [
[[package]] [[package]]
name = "aw-query" name = "aw-query"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/ActivityWatch/aw-server-rust.git#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5" source = "git+https://github.com/ActivityWatch/aw-server-rust.git?rev=49b2026#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5"
dependencies = [ dependencies = [
"aw-datastore", "aw-datastore",
"aw-models", "aw-models 0.1.0 (git+https://github.com/ActivityWatch/aw-server-rust.git?rev=49b2026)",
"aw-transform", "aw-transform",
"chrono", "chrono",
"fancy-regex", "fancy-regex",
@ -403,12 +415,12 @@ dependencies = [
[[package]] [[package]]
name = "aw-server" name = "aw-server"
version = "0.12.1" version = "0.12.1"
source = "git+https://github.com/ActivityWatch/aw-server-rust.git#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5" source = "git+https://github.com/ActivityWatch/aw-server-rust.git?rev=49b2026#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5"
dependencies = [ dependencies = [
"android_logger", "android_logger",
"appdirs", "appdirs",
"aw-datastore", "aw-datastore",
"aw-models", "aw-models 0.1.0 (git+https://github.com/ActivityWatch/aw-server-rust.git?rev=49b2026)",
"aw-query", "aw-query",
"aw-transform", "aw-transform",
"chrono", "chrono",
@ -434,9 +446,9 @@ dependencies = [
[[package]] [[package]]
name = "aw-transform" name = "aw-transform"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/ActivityWatch/aw-server-rust.git#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5" source = "git+https://github.com/ActivityWatch/aw-server-rust.git?rev=49b2026#49b2026b2b61f8d8d017e93dca1d3754dcfef0d5"
dependencies = [ dependencies = [
"aw-models", "aw-models 0.1.0 (git+https://github.com/ActivityWatch/aw-server-rust.git?rev=49b2026)",
"chrono", "chrono",
"fancy-regex", "fancy-regex",
"log", "log",

View File

@ -26,8 +26,8 @@ anyhow = { workspace = true }
signal-hook = "0.3.15" signal-hook = "0.3.15"
ksni = {version = "0.2.0", optional = true} ksni = {version = "0.2.0", optional = true}
aw-server = { git = "https://github.com/ActivityWatch/aw-server-rust.git", optional = true } aw-server = { git = "https://github.com/ActivityWatch/aw-server-rust.git", optional = true, rev = "49b2026" }
aw-datastore = { git = "https://github.com/ActivityWatch/aw-server-rust.git", optional = true } aw-datastore = { git = "https://github.com/ActivityWatch/aw-server-rust.git", optional = true, rev = "49b2026" }
smol = {version = "1.3.0", optional = true } smol = {version = "1.3.0", optional = true }
async-compat = { version = "0.2.1", optional = true } async-compat = { version = "0.2.1", optional = true }
webbrowser = { version = "0.8.9", optional = true } webbrowser = { version = "0.8.9", optional = true }

View File

@ -34,7 +34,7 @@ To track your activities in browsers install the plugin for your browser from
The executable can be bundled with a tray icon, ActivityWatch server and, optionally, Web UI (if steps 1-2 are done): The executable can be bundled with a tray icon, ActivityWatch server and, optionally, Web UI (if steps 1-2 are done):
1. Clone and follow the instruction in [ActivityWatch/aw-webui](https://github.com/ActivityWatch/aw-webui) 1. Clone and follow the instruction in [ActivityWatch/aw-webui@839366e](https://github.com/ActivityWatch/aw-webui/commit/839366e66f859faadd7f9128de3bea14b25ce4ae)
to build the "dist" folder, to build the "dist" folder,
1. Then zip it with `zip -r dist.zip aw-webui/dist`. 1. Then zip it with `zip -r dist.zip aw-webui/dist`.
2. Build the executable with `--features=bundle`. 2. Build the executable with `--features=bundle`.
@ -112,9 +112,13 @@ Matches are case sensitive regular expressions between implici ^ and $:
- `word` is an exact match. - `word` is an exact match.
- Use escapes `\` to match special characters, e.g. `org\.kde\.Dolpin` - Use escapes `\` to match special characters, e.g. `org\.kde\.Dolpin`
#### Captures
The replacements in filters also support regexp captures. The replacements in filters also support regexp captures.
A captures takes a string in parentheses from the match and replaces `$N` in the replacement, where `N` is the number of parentheses. A capture takes a string in parentheses from the match and replaces `$N` in the replacement.
Example filter to remove the changed file indicator in Visual Studio Code: Example to remove the changed file indicator in Visual Studio Code:
- Before: "● file_config.rs - awatcher - Visual Studio Code"
- After: "file_config.rs - awatcher - Visual Studio Code"
```toml ```toml
[[awatcher.filters]] [[awatcher.filters]]
match-app-id = "code" match-app-id = "code"
@ -123,6 +127,8 @@ match-title = "● (.*)"
replace-title = "$1" replace-title = "$1"
``` ```
#### Debugging app-id and title
Run the command with "debug" or "trace" verbosity and without reporting to server in the terminal Run the command with "debug" or "trace" verbosity and without reporting to server in the terminal
to see what application names and titles are reported to the server. to see what application names and titles are reported to the server.
``` ```