-
Notifications
You must be signed in to change notification settings - Fork 853
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
Update rand, proc-macro and zstd dependencies #488
Changes from all commits
cd5bb8b
578f770
4dd8090
24801d7
efec71c
1d228cc
e07ca05
e349b96
6ccb25a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,10 @@ serde = { version = "1.0", features = ["rc"] } | |
serde_derive = "1.0" | ||
serde_json = { version = "1.0", features = ["preserve_order"] } | ||
indexmap = "1.6" | ||
rand = "0.7" | ||
rand = { version = "0.8", default-features = false } | ||
# getrandom is a dependency of rand, not (directly) of arrow | ||
# need to specify `js` feature to build on wasm | ||
getrandom = { version = "0.2", features = ["js"] } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we may be able to achieve the same using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will give it a try There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried this and sadly I am told: alamb@ip-10-0-0-124:~/Software/arrow-rs/arrow$ cargo build --target wasm32-unknown-unknown
error: failed to parse manifest at `/Users/alamb/Software/arrow-rs/arrow/Cargo.toml`
Caused by:
feature `getrandom/js` in dependency `rand` is not allowed to contain slashes
If you want to enable features of a transitive dependency, the direct dependency needs to re-export those features from the `[features]` table. alamb@ip-10-0-0-124:~/Software/arrow-rs/arrow$ git diff Cargo.toml
diff --git a/arrow/Cargo.toml b/arrow/Cargo.toml
index 478f33678..f6255a93d 100644
--- a/arrow/Cargo.toml
+++ b/arrow/Cargo.toml
@@ -40,10 +40,7 @@ serde = { version = "1.0", features = ["rc"] }
serde_derive = "1.0"
serde_json = { version = "1.0", features = ["preserve_order"] }
indexmap = "1.6"
-rand = { version = "0.8", default-features = false }
-# getrandom is a dependency of rand, not (directly) of arrow
-# need to specify `js` feature to build on wasm
-getrandom = { version = "0.2", features = ["js"] }
+rand = { version = "0.8", default-features = false, features = ["getrandom/js"] }
num = "0.4"
csv_crate = { version = "1.1", optional = true, package="csv" }
regex = "1.3"
alamb@ip-10-0-0-124:~/Software/arrow-rs/arrow$ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sadly, it appears this workaround is the recommended way from
|
||
num = "0.4" | ||
csv_crate = { version = "1.1", optional = true, package="csv" } | ||
regex = "1.3" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I removed the wacky
std
feature and found a different work around forarrow-pyarrow-integration-testing
If this passes CI I think it is good enough to merge