-
Notifications
You must be signed in to change notification settings - Fork 216
Description
Crate name
tauri-plugin-android-fs
Build failure link
https://docs.rs/crate/tauri-plugin-android-fs/15.1.0/builds
Additional details
I am using a translation tool, so I apologize in advance if any expressions are inappropriate.
I am publishing a crate, and when I released a new version, an error occurred on docsrs.
Here is the error message.
I understand that it is an error related to serde
inside the url
crate of indirect dependencies, but I don’t know how to fix it.
The diff that caused the version where documentation fails is available here, and in Cargo.toml
I have not changed anything other than the version.
Running cargo doc --open
locally succeeds, and compiling a project that uses this crate also works.
What I have tried
1.
Since a new version of serde
was released yesterday, I thought it might be the cause of the failure. Therefore, I modified it so that docs.rs uses the older version (the one in Cargo.lock
) only when building documentation:
[target.'cfg(not(target_os = "docrs"))'.dependencies]
serde = { version = "1", features = ["derive"] }
[target.'cfg(target_os = "docrs")'.dependencies]
serde = { version = "1.0.223", features = ["derive"] }
This removed the error caused by the url crate, but then another serde-related error appeared caused by a different crate:
https://docs.rs/crate/tauri-plugin-android-fs/15.1.5/builds/2537591
2.
Since cargo doc --open
succeeded locally on aarch64-apple-darwin
, I tried configuring docs.rs to use aarch64-apple-darwin
as well:
[package.metadata.docs.rs]
targets = ["aarch64-apple-darwin"]
However, the following error occurred:
https://docs.rs/crate/tauri-plugin-android-fs/15.1.6/builds/2537817