- docs.rs detection when built as dependency
This commit is contained in:
+3
-3
@@ -1,13 +1,13 @@
|
||||
[package]
|
||||
name = "libczirw-sys"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
edition = "2024"
|
||||
rust-version = "1.85.1"
|
||||
authors = ["Wim Pomp <w.pomp@nki.nl>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
description = "Wrapper around libCZIAPI"
|
||||
homepage = "https://git.wimpomp.nl/wim/libczirw-sys"
|
||||
repository = "https://git.wimpomp.nl/wim/libczirw-sys"
|
||||
homepage = "https://git.pomppervova.nl/wim/libczirw-sys"
|
||||
repository = "https://git.pomppervova.nl/wim/libczirw-sys"
|
||||
documentation = "https://docs.rs/libczirw-sys"
|
||||
readme = "README.md"
|
||||
keywords = ["czi", "zeiss", "libczi"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# libCZIrw-sys
|
||||
|
||||
Crate linking to [libCZIAPI](https://github.com/ZEISS/libczi). This crate attempts to provide safe wrappers to objects
|
||||
and functions in libCZIAPI. Direct often unsafe access using pointer is available through the `sys` module.
|
||||
and functions in libCZIAPI. Direct often unsafe access using pointers is available through the `sys` module.
|
||||
|
||||
By default, libCZIAPI will be statically linked. The feature `dynamic` will switch it to dynamic linking.
|
||||
|
||||
|
||||
@@ -115,7 +115,9 @@ fn fix_xwin_lib_case() -> Result<(), Box<dyn std::error::Error>> {
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
if env::var("DOCS_RS").is_err() {
|
||||
if env::var("DOCS_RS").is_ok() {
|
||||
println!("cargo::rustc-cfg=docsrs");
|
||||
} else {
|
||||
let host = env::var("HOST")?;
|
||||
let target = env::var("TARGET")?;
|
||||
let is_cross = host != target
|
||||
|
||||
Reference in New Issue
Block a user