servo / unicode-bidi

Implementation of the Unicode Bidirection Algorithm in Rust
Other
74 stars 34 forks source link

Error building #38

Closed ktorn closed 7 years ago

ktorn commented 7 years ago

Running into a unicode-bidi related build issue, as part of building iron-todo:

error[E0412]: type name `Range` is undefined or not in scope
  --> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.3/src/deprecated.rs:25:26
   |
25 | pub fn visual_runs(line: Range<usize>, levels: &[Level]) -> Vec<LevelRun> {
   |                          ^^^^^^^^^^^^ undefined or not in scope
   |
   = help: you can import several candidates into scope (`use ...;`):
   = help:   `std::collections::btree_map::Range`
   = help:   `std::collections::btree_set::Range`
   = help:   `std::ops::Range`

error[E0425]: unresolved name `min`
  --> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.3/src/deprecated.rs:45:25
   |
45 |             min_level = min(level, min_level);
   |                         ^^^ unresolved name

error[E0425]: unresolved name `max`
  --> /Users/user/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.3/src/deprecated.rs:46:25
   |
46 |             max_level = max(level, max_level);
   |                         ^^^ unresolved name

error: aborting due to 3 previous errors
jdm commented 7 years ago

What version of Rust are you running?

behnam commented 7 years ago

This is a known problem with rustc:<1.15.0. We only support rustc:>=1.15.0 since unicode-bidi:>=0.3.0. You can try using an older version (unicode-bidi:<0.3.0) for older rustc version.

ktorn commented 7 years ago

I upgraded to rustc 1.17.0 and unicode-bidi 0.3.3 built successfully.

Thank you.