-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: misc improved docs, including rust watcher example #132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Changes requested. Reviewed everything up to 27903cb in 48 seconds
More details
- Looked at
298
lines of code in8
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. src/examples/client.rs:19
- Draft comment:
Thehostname
field in theBucket
struct is set to an empty string. This might be incorrect or unintended. Typically, the hostname should be set to a meaningful value. - Reason this comment was not posted:
Confidence of 30% on close inspection, compared to threshold of 50%.
2. src/examples/minimal_client.rs:18
- Draft comment:
Thehostname
field in theBucket
struct is set to an empty string. This might be incorrect or unintended. Typically, the hostname should be set to a meaningful value. - Reason this comment was not posted:
Marked as duplicate.
Workflow ID: wflow_YkJfdVXnz7mWIYvU
Want Ellipsis to fix these issues? Tag @ellipsis-dev
in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
edition = "2021" | ||
|
||
[dependencies] | ||
aw-client-rust = { git = "https://github.com/ActivityWatch/aw-server-rust.git", branch = "master" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depending on the master
branch of a git repository for dependencies can lead to unstable builds. Consider using specific versions or tags to ensure stability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Applying some changes and merging.
@ErikBjare the syntax highlighting is not working for the rust examples, I was going to investigate it later. But I can include it in the next PR. |
Summary:
Updated documentation with new Rust examples, fixed Python example, and added configuration details for
aw-server-rust
.Key points:
src/configuration.rst
to includehost
,port
, andcors
options foraw-server-rust
.src/examples/cargo.toml
for Rust client dependencies.src/examples/client.py
to fixcreate_bucket
function call.src/examples/client.rs
with a detailed Rust client example.src/examples/minimal_client.rs
with a minimal Rust client example.src/examples/writing-watchers.rst
to include Rust examples for writing watchers.src/importers.rst
.aw-watcher-lastfm
to media watchers insrc/watchers.rst
.Generated with ❤️ by ellipsis.dev