mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-02 22:06:50 +02:00
fix: mobile docs.rs builds
This commit is contained in:
12 files changed
+84
-46
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user