Comments (14)
Reporting the same. Can't build silicon
as a result.
from pasteboard.
Hmm, strange, I am getting the opposite:
22:09:32 cargo check
Updating crates.io index
Checking pasteboard v0.1.1 (/Users/Klas/Workspace/rust/pasteboard)
error[E0308]: mismatched types
--> src/lib.rs:63:12
|
63 | if pasteboard.canReadObjectForClasses_options(class_array, options) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `i8`
error[E0308]: mismatched types
--> src/lib.rs:66:59
|
66 | NSData::writeToFile_atomically_(object, path, false);
| ^^^^^ expected `i8`, found `bool`
Which version of Big Sur are you on? I am on 11.0.1.
I can add a configuration flag so it works for each version.
from pasteboard.
@segeljakt I'm on 11.1 Beta (20C5061b)
let me double check the exact errors I received
from pasteboard.
Compiling pasteboard v0.1.1
error[E0308]: mismatched types
--> /Users/berkus/.cargo/registry/src/github.com-1ecc6299db9ec823/pasteboard-0.1.1/src/lib.rs:63:80
|
63 | if pasteboard.canReadObjectForClasses_options(class_array, options) != 0 {
| ^ expected `bool`, found integer
error[E0308]: mismatched types
--> /Users/berkus/.cargo/registry/src/github.com-1ecc6299db9ec823/pasteboard-0.1.1/src/lib.rs:66:59
|
66 | NSData::writeToFile_atomically_(object, path, 0);
| ^ expected `bool`, found integer
error: aborting due to 2 previous errors
and
➤ rustc --version
rustc 1.50.0-nightly (0f6f2d681 2020-12-06)
from pasteboard.
I suspect it could be depending on the version of some objc crate? What provides NSData and canReadObjectForClasses_options here?
from pasteboard.
Hello?
from pasteboard.
Hey, sorry I forgot to respond. I'll see if I can add a condition so it compiles differently depending on the OS version
from pasteboard.
🙇
from pasteboard.
Can you try and see if #2 compiles on your machine? It adds a conditional compilation which triggers if the OS version is 11.1.x
or higher.
from pasteboard.
Yep, works, commented in #2
from pasteboard.
Thank you, then I will close this
from pasteboard.
Hi!
It would be awesome to have a release published so I can bump the dependencies in silicon
.
Thanks!
from pasteboard.
Hi, it should be up now 🎅
from pasteboard.
Yay, thanks!
from pasteboard.
Related Issues (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 pasteboard.