Hands-on Rust: Build depending on bracket-lib fails

Hi,
build fails on:
bracket-lib = “~0.8.1”
when running on Mac Mini M1 Rust version 1.5.0:
Compiling winit v0.22.2
error[E0308]: mismatched types
→ .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.22.2/src/platform_impl/macos/util/async.rs:170:55
|
170 | ns_window.setFrame_display_(new_rect, 0);
| ^ expectedbool
, found integererror[E0308]: mismatched types
→ .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.22.2/src/platform_impl/macos/view.rs:391:9
|
386 | extern “C” fn has_marked_text(this: &Object, _sel: Sel) → BOOL {
| ---- expectedbool
because of return type
…
391 | (marked_text.length() > 0) as i8
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expectedbool
, foundi8
error[E0308]: mismatched types
→ .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.22.2/src/platform_impl/macos/window.rs:631:22
|
631 | is_zoomed != 0
| ^ expectedbool
, found integererror[E0308]: mismatched types
→ .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.22.2/src/platform_impl/macos/window.rs:1119:48
|
1119 | window.setFrame_display_(current_rect, 0)
| ^ expectedbool
, found integererror[E0308]: mismatched types
→ .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.22.2/src/platform_impl/macos/window.rs:1126:48
|
1126 | window.setFrame_display_(current_rect, 0)
| ^ expectedbool
, found integererror[E0308]: mismatched types
→ .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.22.2/src/platform_impl/macos/window.rs:1143:48
|
1143 | window.setFrame_display_(current_rect, 0)
| ^ expectedbool
, found integererror[E0308]: mismatched types
→ .cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.22.2/src/platform_impl/macos/window.rs:1150:48
|
1150 | window.setFrame_display_(current_rect, 0)
| ^ expectedbool
, found integererror: aborting due to 7 previous errors
For more information about this error, try
rustc --explain E0308
.
error: could not compilewinit
Is there any way to solve?
Thanks!
Popular Pragprog topics










Other popular topics










Latest in Pragprog
Latest (all)
Categories:
My Saved Portals
-
None saved yet
Popular Portals
- /elixir
- /opensuse
- /rust
- /kotlin
- /ruby
- /erlang
- /python
- /clojure
- /react
- /quarkus
- /go
- /vapor
- /v
- /react-native
- /wasm
- /security
- /django
- /nodejs
- /centos
- /haskell
- /rails
- /fable
- /gleam
- /swift
- /js
- /deno
- /assemblyscript
- /tailwind
- /laravel
- /symfony
- /phoenix
- /crystal
- /typescript
- /debian
- /adonisjs
- /julia
- /arch-linux
- /svelte
- /spring
- /c-plus-plus
- /preact
- /flutter
- /actix
- /java
- /angular
- /ocaml
- /zig
- /kubuntu
- /scala
- /zotonic
- /vim
- /rocky
- /lisp
- /html
- /keyboards
- /vuejs
- /nim
- /emacs
- /nerves
- /elm