silicon: Latest update is failing to compile

Installing through cargo install.

   Compiling pasteboard v0.1.2
error[E0308]: mismatched types
  --> /Users/augusto/.cargo/registry/src/github.com-1ecc6299db9ec823/pasteboard-0.1.2/src/lib.rs:75:12
   |
75 |         if ok {
   |            ^^ expected `bool`, found `i8`

error[E0308]: mismatched types
  --> /Users/augusto/.cargo/registry/src/github.com-1ecc6299db9ec823/pasteboard-0.1.2/src/lib.rs:82:59
   |
82 |             NSData::writeToFile_atomically_(object, path, false);
   |                                                           ^^^^^ expected `i8`, found `bool`

error: aborting due to 2 previous errors

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@segeljakt @Aloxaf Do you think we should update this version of pasteboard in master so this builds cleanly on macOS Big Sur?

https://github.com/Aloxaf/silicon/blob/master/Cargo.toml#L25

Thanks @segeljakt . Updating to pasteboard v0.1.3 fixed the build issue I was seeing on macOS Big Sur.

Big apologies for the long wait. I pushed an update to pasteboard (now pasteboard = 0.1.3) which should hopefully fix this issue. If not then please report back. It works for me now on macOS 11.4.0.

@segeljakt It seems that not all Big Sur run on arm device.

Replacing custom big_sur_update with target_arch = "aarch64" may be a better choice?

ref. https://github.com/SSheldon/rust-objc/blob/master/src/runtime.rs#L27-L28