fix: mobile docs.rs builds

This commit is contained in:
Lucas Nogueira committed 2026-09-30 17:56:45 -03:00
1 parent 25f3874656
commit 569ee82cf6
12 files changed
+84 -46

No files matched your search

+5 -2
View File
@@ -18,8 +18,11 @@ fn main() {
.ios_path("ios")
.try_build();
// when building documentation for Android the plugin build result is always Err() and is irrelevant to the crate documentation build
if !(cfg!(docsrs) && std::env::var("TARGET").unwrap().contains("android")) {
// when building documentation for Android the plugin build result is always Err() (docs.rs mounts the sources read-only) and is irrelevant to the crate documentation build
// `cfg(docsrs)` only reaches rustdoc, build scripts must check the `DOCS_RS` env var instead
if !(std::env::var_os("DOCS_RS").is_some()
&& std::env::var("TARGET").unwrap().contains("android"))
{
result.unwrap();
}
}
+5 -2
View File
@@ -11,8 +11,11 @@ fn main() {
.ios_path("ios")
.try_build();
// when building documentation for Android the plugin build result is always Err() and is irrelevant to the crate documentation build
if !(cfg!(docsrs) && std::env::var("TARGET").unwrap().contains("android")) {
// when building documentation for Android the plugin build result is always Err() (docs.rs mounts the sources read-only) and is irrelevant to the crate documentation build
// `cfg(docsrs)` only reaches rustdoc, build scripts must check the `DOCS_RS` env var instead
if !(std::env::var_os("DOCS_RS").is_some()
&& std::env::var("TARGET").unwrap().contains("android"))
{
result.unwrap();
}
}
+5 -2
View File
@@ -18,8 +18,11 @@ fn main() {
.ios_path("ios")
.try_build();
// when building documentation for Android the plugin build result is always Err() and is irrelevant to the crate documentation build
if !(cfg!(docsrs) && std::env::var("TARGET").unwrap().contains("android")) {
// when building documentation for Android the plugin build result is always Err() (docs.rs mounts the sources read-only) and is irrelevant to the crate documentation build
// `cfg(docsrs)` only reaches rustdoc, build scripts must check the `DOCS_RS` env var instead
if !(std::env::var_os("DOCS_RS").is_some()
&& std::env::var("TARGET").unwrap().contains("android"))
{
result.unwrap();
}
}
+5 -2
View File
@@ -78,8 +78,11 @@ fn main() {
.android_path("android")
.try_build();
// when building documentation for Android the plugin build result is always Err() and is irrelevant to the crate documentation build
if !(cfg!(docsrs) && std::env::var("TARGET").unwrap().contains("android")) {
// when building documentation for Android the plugin build result is always Err() (docs.rs mounts the sources read-only) and is irrelevant to the crate documentation build
// `cfg(docsrs)` only reaches rustdoc, build scripts must check the `DOCS_RS` env var instead
if !(std::env::var_os("DOCS_RS").is_some()
&& std::env::var("TARGET").unwrap().contains("android"))
{
result.unwrap();
}
+5 -2
View File
@@ -11,8 +11,11 @@ fn main() {
.ios_path("ios")
.try_build();
// when building documentation for Android the plugin build result is always Err() and is irrelevant to the crate documentation build
if !(cfg!(docsrs) && std::env::var("TARGET").unwrap().contains("android")) {
// when building documentation for Android the plugin build result is always Err() (docs.rs mounts the sources read-only) and is irrelevant to the crate documentation build
// `cfg(docsrs)` only reaches rustdoc, build scripts must check the `DOCS_RS` env var instead
if !(std::env::var_os("DOCS_RS").is_some()
&& std::env::var("TARGET").unwrap().contains("android"))
{
result.unwrap();
}
}
+5 -2
View File
@@ -17,8 +17,11 @@ fn main() {
.ios_path("ios")
.try_build();
// when building documentation for Android the plugin build result is always Err() and is irrelevant to the crate documentation build
if !(cfg!(docsrs) && std::env::var("TARGET").unwrap().contains("android")) {
// when building documentation for Android the plugin build result is always Err() (docs.rs mounts the sources read-only) and is irrelevant to the crate documentation build
// `cfg(docsrs)` only reaches rustdoc, build scripts must check the `DOCS_RS` env var instead
if !(std::env::var_os("DOCS_RS").is_some()
&& std::env::var("TARGET").unwrap().contains("android"))
{
result.unwrap();
}
}
+5 -2
View File
@@ -16,8 +16,11 @@ fn main() {
.ios_path("ios")
.try_build();
// when building documentation for Android the plugin build result is always Err() and is irrelevant to the crate documentation build
if !(cfg!(docsrs) && std::env::var("TARGET").unwrap().contains("android")) {
// when building documentation for Android the plugin build result is always Err() (docs.rs mounts the sources read-only) and is irrelevant to the crate documentation build
// `cfg(docsrs)` only reaches rustdoc, build scripts must check the `DOCS_RS` env var instead
if !(std::env::var_os("DOCS_RS").is_some()
&& std::env::var("TARGET").unwrap().contains("android"))
{
result.unwrap();
}
}
+5 -2
View File
@@ -11,8 +11,11 @@ fn main() {
.ios_path("ios")
.try_build();
// when building documentation for Android the plugin build result is always Err() and is irrelevant to the crate documentation build
if !(cfg!(docsrs) && std::env::var("TARGET").unwrap().contains("android")) {
// when building documentation for Android the plugin build result is always Err() (docs.rs mounts the sources read-only) and is irrelevant to the crate documentation build
// `cfg(docsrs)` only reaches rustdoc, build scripts must check the `DOCS_RS` env var instead
if !(std::env::var_os("DOCS_RS").is_some()
&& std::env::var("TARGET").unwrap().contains("android"))
{
result.unwrap();
}
+5 -2
View File
@@ -29,8 +29,11 @@ fn main() {
.ios_path("ios")
.try_build();
// when building documentation for Android the plugin build result is always Err() and is irrelevant to the crate documentation build
if !(cfg!(docsrs) && std::env::var("TARGET").unwrap().contains("android")) {
// when building documentation for Android the plugin build result is always Err() (docs.rs mounts the sources read-only) and is irrelevant to the crate documentation build
// `cfg(docsrs)` only reaches rustdoc, build scripts must check the `DOCS_RS` env var instead
if !(std::env::var_os("DOCS_RS").is_some()
&& std::env::var("TARGET").unwrap().contains("android"))
{
result.unwrap();
}
}