Skip to content

Conversation

@weiznich
Copy link
Member

Just testing the CI

urschrei and others added 22 commits April 1, 2024 18:46
Unpacking the proj source code to the cargo registry cache can run into
potential data races for concurrent builds. This can be fixed by
unpacking the source code into the build directory of the current build.
This also ensures that we don't infer with a otherwise assumed static
registry cache directory.
This commit adds an optional dependency to libsqlite3-sys to provide a
bundled version of libsqlite3 as well instead of relying on a system
provided version.

---------

Co-authored-by: Michael Kirk <[email protected]>
The outdated Reqwest version is causing a few duplicated dependencies in
our tree.
We need to always build release builds there (to prevent linker errors
due to mixing up debug and release runtimes) and we need an additional
flag to prevent the static library to expect some proj.dll file to exist
Addresses georust#189, reducing `cargo tree -F network | wc -l` from 296 to
190.
This commit changes proj-sys to not depend on bindgen by default as that
introduces a quite heavy build time dependency (libclang) which might
not be there on all systems. Instead bundled bindings for the proj
version build by the `bundled_proj` feature are provided.
)

I've opted to allow several different versions there instead of just
bumping the supported version as that makes it much easier to use
proj-sys in a complex project where other crates depend on
libpsqlite3-sys as well. Cargo then will figure out the right version
for all dependencies as long as there is a overlapping version.
The immediate instigation for this was
georust/geo#1283.

Turns out bindgen [dropped the `which`
dependency](rust-lang/rust-bindgen@c03964c)
a while back.

But also, good to stay on top of the dependency updates.
This is a first attempt at solving georust#183 but the doctest segfaults 😕 .
Does anyone have guidance here?

```
running 1 test
Test executable failed (signal: 11 (SIGSEGV)).
test src/proj.rs - proj::Proj::to_projjson (line 1068) ... FAILED

failures:

failures:
    src/proj.rs - proj::Proj::to_projjson (line 1068)

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 23 filtered out; finished in 0.31s
```

---------

Co-authored-by: Stephan Hügel <[email protected]>
[This is pretty widespread now](https://lib.rs/crates/thiserror/rev)
(and will be more so by the next Proj release).
- [x] I agree to follow the project's [code of
conduct](https://github.com/georust/.github/blob/main/CODE_OF_CONDUCT.md).
- [x] I added an entry to the project's change log file if knowledge of
this change could be valuable to users.
  - Usually called `CHANGES.md` or `CHANGELOG.md`
  - Prefix changelog entries for breaking changes with "BREAKING: "
---

---------

Co-authored-by: Laurențiu Nicola <[email protected]>
@weiznich weiznich force-pushed the bump/libsqlite_0.31 branch from 91abca6 to f1dc63a Compare January 29, 2025 11:58
@weiznich weiznich closed this Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants