Comments (8)
Alternative: is it possible to somehow arrange the crates so that the circular dependency is removed altogether?
from rust_icu.
We could theoretically move the tests that cause the cycle out into a new crate, but that seems like a risky practice.
from rust_icu.
To short-circuit the search, which crates are forming a cycle? Perhaps indeed we can move things around so that we don't need to patch things up to publish them.
from rust_icu.
It's ucal
and udat
, because
udat
has a method that takes a&ucal::UCalendar
rust_icu/rust_icu_udat/src/lib.rs
Line 147 in 29ff766
- In
ucal
tests, we're parsing dates (udat::UDateFormat
)
rust_icu/rust_icu_ucal/src/lib.rs
Line 422 in 29ff766
from rust_icu.
I removed my earlier message, since I misunderstood the options we had.
So now I see and understand how this came about. Given that rust_icu_udat
is a higher-level crate than rust_icu_ucal
, it is wrong for tests in rust_icu_ucal
to require a loop back. So I kind of side with the crates.io objecting in the end; even though strictly speaking dev deps could be treated separately.
In retrospect, I see that my review recommendation to use date parsing for these few tests have caused this loop back. I wasn't aware that this would be an issue.
Would it be very horrible to lift these tests into rust_icu_udat
, thus removing the dependency back-link? Yes, we'd be testing UCalendar elsewhere, but it's probably better than fiddling with the release process.
It seems like a better option compared to moving tests to a different crate, since test are still coupled with one of the two crates that are effectively under test. WDYT?
from rust_icu.
Could we just avoid the UDateFormat
dependency and go back to using hard-coded timestamps with comments?
from rust_icu.
Could we just avoid the
UDateFormat
dependency and go back to using hard-coded timestamps with comments?
Yes, that'd work too. Feel free to make a pull request to that effect. I'll remove #101 .
from rust_icu.
One more thing: is there a way to configure cargo to alert us to such dep cycles?
from rust_icu.
Related Issues (20)
- Update rust_icu to support ICU 71.1
- normalize_ustring hard-codes the output capacity to 200 HOT 5
- Support UCPTrie and UMutableCPTrie HOT 5
- Better support for &[u16]
- Add a builder that tests `rust_icu` with the "future" release of ICU
- Add support for ICU 72.1
- Remove the mentions of now unsupported ICU versions
- Expose a few interesting symbols in rust_icu_sys HOT 1
- Does not build in OpenSuSe when versioned_function is used HOT 3
- SOLVED - Error building on macOS HOT 1
- Upgrade to ICU 73.1 HOT 1
- Update bindgen version HOT 2
- `make static-bindgen` failed HOT 8
- Upgrade the build environment to use rust 1.71.0 HOT 1
- make UDataMemory Sync and Send HOT 1
- Verify support for ICU v74
- Drop support for ICU v71
- Add an automated test for buildenv
- Re-enable test-static-linking macos-latest
- rust_icu_utrans-bda1006a1ca627ee: /src/icu/icu4c/source/common/uinvchar.cpp:210: void u_UCharsToChars_74(const char16_t *, char *, int32_t): Assertion `false' failed. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust_icu.