-
Notifications
You must be signed in to change notification settings - Fork 46
Compilation Error: *const i8
cannot be sent between threads safely
#18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've also tried to compile without enabling the "chrono" feature, I receive the same error. |
Can't reproduce on |
@scull7 $ rustup toolchain list
stable-x86_64-apple-darwin (default)
$ rustc --version
rustc 1.39.0 (4560ea788 2019-11-04)
$ cargo new oracle-app
Created binary (application) `oracle-app` package
$ cd oracle-app/
$ echo 'oracle = { git = "https://github.com/kubo/rust-oracle.git", features = ["chrono"] }' >> Cargo.toml
$ cargo build
Updating git repository `https://github.com/kubo/rust-oracle.git`
Updating crates.io index
Downloaded chrono v0.4.9
Downloaded autocfg v0.1.7
Downloaded num-traits v0.2.9
Compiling proc-macro2 v1.0.6
Compiling autocfg v0.1.7
Compiling unicode-xid v0.2.0
Compiling syn v1.0.8
Compiling libc v0.2.65
Compiling cc v1.0.47
Compiling lazy_static v1.4.0
Compiling try_from v0.2.2
Compiling num-traits v0.2.9
Compiling num-integer v0.1.41
Compiling quote v1.0.2
Compiling time v0.1.42
Compiling oracle v0.3.1 (https://github.com/kubo/rust-oracle.git#2e619029)
Compiling chrono v0.4.9
Compiling proc-macro-hack v0.5.11
Compiling paste-impl v0.1.6
Compiling paste v0.1.6
Compiling oracle-app v0.1.0 (/Users/kubo/oracle-app)
Finished dev [unoptimized + debuginfo] target(s) in 46.33s Could you paste the contents of |
Here's my Cargo.lock file: https://gist.github.com/scull7/41be1d15360258d351c5658cef90247a |
Is anyone able to shed some light on this? Still stuck. |
I found that the error appeared when oracle is used with tracing-core >= 0.1.4 (after this commit). I don't know why. I'll add |
Thank you 🙏 |
ContextResult is read-only after it is initialized by lasy_static. So it can implement Send. (fix #18)
I'm getting a compilation failure when pulling in oracle. I've tried using the master branch:
And version 0.3.1:
rustc
version:The text was updated successfully, but these errors were encountered: