-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gdal crate failing to compile #1591
Comments
The error comes from this conditional compilation in gdal: #[cfg(docsrs)]
pub fn gdal_version_info(_key: &str) -> String {
"GDAL 3.2.0, released 2222/02/22".to_string()
}
#[cfg(not(docsrs))]
pub fn gdal_version_info(key: &str) -> String {
let c_key = std::ffi::CString::new(key.as_bytes()).unwrap();
unsafe {
let res_ptr = gdal_sys::GDALVersionInfo(c_key.as_ptr());
let c_res = std::ffi::CStr::from_ptr(res_ptr);
c_res.to_string_lossy().into_owned()
}
} They do provide a flag in their Cargo.toml: [package.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs"] But the building system seems to ignore it (you can see |
@Nemo157 could you have a look here? |
I think this is caused by #1580 which is afaik still blocked on rust-lang/cargo#10206; the |
@Nemo157 was this solved with the resolved cargo issue? |
I think it should have been, I've queued a rebuild and we'll see what happens. |
Rebuild succeeded 🎉 |
Crate name
map-engine
Build failure link
https://docs.rs/crate/map-engine/0.1.0/builds/491073
Additional details
Happy new year to everyone and thanks for your amazing work.
I just published my first crate (map-engine) and I'm having problems generating the docs due to a dependency that fails to compile.
The dependency is gdal which has an external dependency (GDAL). I checked if it was possible to make a PR to crates-build-env but the problem is that Ubuntu 18.04 has a very old version of GDAL.
Is there any recommended way of dealing with this?
Thanks!
The text was updated successfully, but these errors were encountered: