mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
fix doc build for docs.rs
This commit is contained in:
parent
5468e5ce9d
commit
6f23c4bd0e
@ -1,3 +1,4 @@
|
|||||||
@echo off
|
@echo off
|
||||||
cargo doc --no-deps -p veilid-core
|
SET BUILD_DOCS=1
|
||||||
cargo doc --no-deps -p veilid-tools
|
cargo rustdoc -p veilid-core
|
||||||
|
cargo rustdoc -p veilid-tools
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cargo doc --no-deps -p veilid-core
|
export BUILD_DOCS=1
|
||||||
cargo doc --no-deps -p veilid-tools
|
cargo rustdoc -p veilid-core
|
||||||
|
cargo rustdoc -p veilid-tools
|
@ -50,11 +50,10 @@ fn get_protoc_version_string() -> String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
#[cfg(doc)]
|
if std::env::var("DOCS_RS").is_ok() || std::env::var("BUILD_DOCS").is_ok() {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(not(doc))]
|
|
||||||
{
|
|
||||||
let desired_capnp_version_string = get_desired_capnp_version_string();
|
let desired_capnp_version_string = get_desired_capnp_version_string();
|
||||||
let capnp_version_string = get_capnp_version_string();
|
let capnp_version_string = get_capnp_version_string();
|
||||||
let desired_protoc_version_string = get_desired_protoc_version_string();
|
let desired_protoc_version_string = get_desired_protoc_version_string();
|
||||||
@ -117,7 +116,6 @@ fn main() {
|
|||||||
.file("proto/veilid.capnp")
|
.file("proto/veilid.capnp")
|
||||||
.run()
|
.run()
|
||||||
.expect("compiling schema");
|
.expect("compiling schema");
|
||||||
}
|
|
||||||
|
|
||||||
// Fix for missing __extenddftf2 on Android x86_64 Emulator
|
// Fix for missing __extenddftf2 on Android x86_64 Emulator
|
||||||
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
|
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user