bug: Rust crates that depend on `qdrant-client` break trying to build docs
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- rust
- Domain
- build-system, documentation
Research direction
Inspect build.rs and the docs.rs build log linked in the issue, then check how the build behaves when DOCS_RS is set. Reproduce the failure with the documented crate build if possible; done means qdrant-client and dependent crates build their documentation successfully in the docs.rs sandbox.
Written by the indexing model from the issue text.
Description
Logs: https://docs.rs/crate/rig-qdrant/0.1.23/builds/2442024
From docs.rs:
Most of the sandbox is a read-only file system, including the source directory of your crate and its dependencies. If your build.rs generates files that are relevant for documentation, consider writing to the cargo output directory, passed in the environment variable OUT_DIR.
Looks like the qdrant-client build.rs file writes to what would be considered a read-only part of the sandbox (./tests, ...), breaking the docs build.
We can probably fix this by writing the following at the start of the build.rs fn main():
if std::env::var("DOCS_RS").is_ok() {
return;
}
I am quite keen to get this fixed as Rig (which I maintain) is starting to become quite a heavily used library.
- Dominant language
- Rust
- Stars
- 425
- Forks
- 89
- Avg merge
- 2h 48m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qdrant/rust-client
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
qdrant/rust-client#320 ·
-
upsert_points deep-clones the whole request on every call, not only on retryMay be free again @NullSense claimed this 7 days ago, and no pull request is open. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
qdrant/rust-client#316 · 3 comments ·
-
Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)May be free again @inamdarmihir claimed this 37 days ago, and no pull request is open. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
qdrant/rust-client#306 · 1 comment ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 38/100
qdrant/rust-client#289 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
qdrant/rust-client#272 · 2 reactions ·
All issues in qdrant/rust-client
Similar issues
-
autofix:working
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
libracoder/kiri#1138 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
roc-lang/basic-webserver#277 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
samkerrcode/opengent#113 ·
Maintainers usually reply within 1 day
-
app bug session
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day