[GH-ISSUE #826] on mac,"cargo build --release" encounter errors #545

Closed
opened 2026-03-15 23:05:32 +03:00 by kerem · 8 comments
Owner

Originally created by @luckypoem on GitHub (Jul 15, 2019).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/826

hi.

on mac.
git clone https://github.com/bluejekyll/trust-dns
cd trust-dns

yudeMacBook-Air:trust-dns brite$ cargo build --release
warning: unused manifest key: package.edition
Updating registry https://github.com/rust-lang/crates.io-index
Updating registry https://github.com/rust-lang/crates.io-index
error: no matching package named getrandom_package found (required by rand)
location searched: registry https://github.com/rust-lang/crates.io-index
version required: ^0.1.1
yudeMacBook-Air:trust-dns brite$

how to fix it?tks

Originally created by @luckypoem on GitHub (Jul 15, 2019). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/826 hi. on mac. git clone https://github.com/bluejekyll/trust-dns cd trust-dns yudeMacBook-Air:trust-dns brite$ cargo build --release warning: unused manifest key: package.edition Updating registry `https://github.com/rust-lang/crates.io-index` Updating registry `https://github.com/rust-lang/crates.io-index` error: no matching package named `getrandom_package` found (required by `rand`) location searched: registry `https://github.com/rust-lang/crates.io-index` version required: ^0.1.1 yudeMacBook-Air:trust-dns brite$ how to fix it?tks
kerem closed this issue 2026-03-15 23:05:38 +03:00
Author
Owner

@bluejekyll commented on GitHub (Jul 17, 2019):

This is currently working on mac: https://travis-ci.org/bluejekyll/trust-dns/jobs/559842302

Could you try running cargo update?

<!-- gh-comment-id:512417421 --> @bluejekyll commented on GitHub (Jul 17, 2019): This is currently working on mac: https://travis-ci.org/bluejekyll/trust-dns/jobs/559842302 Could you try running `cargo update`?
Author
Owner

@luckypoem commented on GitHub (Jul 18, 2019):

same result.

yudeMacBook-Air:trust-dns brite$ cargo update
Updating registry https://github.com/rust-lang/crates.io-index
error: no matching package named getrandom_package found (required by rand)
location searched: registry https://github.com/rust-lang/crates.io-index
version required: ^0.1.1
yudeMacBook-Air:trust-dns brite$ ls
CHANGELOG.md LICENSE-APACHE logo.svg
CODE_OF_CONDUCT.md LICENSE-MIT scripts
Cargo.lock README.md tests
Cargo.toml copyright.txt util
Kjqmt7v.csr crates
yudeMacBook-Air:trust-dns brite$ cargo build --release
warning: unused manifest key: package.edition
Updating registry https://github.com/rust-lang/crates.io-index
Updating registry https://github.com/rust-lang/crates.io-index
error: no matching package named getrandom_package found (required by rand)
location searched: registry https://github.com/rust-lang/crates.io-index
version required: ^0.1.1
yudeMacBook-Air:trust-dns brite$

or,can u pls provide the executable file of mac version in the 'releases'?

<!-- gh-comment-id:512646102 --> @luckypoem commented on GitHub (Jul 18, 2019): same result. yudeMacBook-Air:trust-dns brite$ cargo update Updating registry `https://github.com/rust-lang/crates.io-index` error: no matching package named `getrandom_package` found (required by `rand`) location searched: registry `https://github.com/rust-lang/crates.io-index` version required: ^0.1.1 yudeMacBook-Air:trust-dns brite$ ls CHANGELOG.md LICENSE-APACHE logo.svg CODE_OF_CONDUCT.md LICENSE-MIT scripts Cargo.lock README.md tests Cargo.toml copyright.txt util Kjqmt7v.csr crates yudeMacBook-Air:trust-dns brite$ cargo build --release warning: unused manifest key: package.edition Updating registry `https://github.com/rust-lang/crates.io-index` Updating registry `https://github.com/rust-lang/crates.io-index` error: no matching package named `getrandom_package` found (required by `rand`) location searched: registry `https://github.com/rust-lang/crates.io-index` version required: ^0.1.1 yudeMacBook-Air:trust-dns brite$ or,can u pls provide the executable file of mac version in the 'releases'?
Author
Owner

@luckypoem commented on GitHub (Sep 1, 2019):

i know why.
my cargo version is too low.
cargo version
shows:
cargo 0.26.0-nightly (1d6dfea44 2018-01-26)

rustup update
cargo version
shows:
cargo 1.39.0-nightly (22f7dd049 2019-08-27)

yudeMacBook-Air:trust-dns brite$ sudo cargo build --release
shows:
...
Finished release [optimized] target(s) in 50m 17s

<!-- gh-comment-id:526905733 --> @luckypoem commented on GitHub (Sep 1, 2019): i know why. my cargo version is too low. cargo version shows: cargo 0.26.0-nightly (1d6dfea44 2018-01-26) rustup update cargo version shows: cargo 1.39.0-nightly (22f7dd049 2019-08-27) yudeMacBook-Air:trust-dns brite$ sudo cargo build --release shows: ... Finished release [optimized] target(s) in 50m 17s
Author
Owner

@luckypoem commented on GitHub (Sep 1, 2019):

but where is the example config file named.toml?

<!-- gh-comment-id:526907218 --> @luckypoem commented on GitHub (Sep 1, 2019): but where is the example config file named.toml?
Author
Owner

@bluejekyll commented on GitHub (Sep 1, 2019):

Ah, yes. We require somewhat current releases.

<!-- gh-comment-id:526933436 --> @bluejekyll commented on GitHub (Sep 1, 2019): Ah, yes. We require somewhat current releases.
Author
Owner

@bluejekyll commented on GitHub (Sep 1, 2019):

This is the best example config at the moment: https://github.com/bluejekyll/trust-dns/blob/master/crates/server/tests/named_test_configs/example.toml

There are other examples for different configurations in that same path.

<!-- gh-comment-id:526933639 --> @bluejekyll commented on GitHub (Sep 1, 2019): This is the best example config at the moment: https://github.com/bluejekyll/trust-dns/blob/master/crates/server/tests/named_test_configs/example.toml There are other examples for different configurations in that same path.
Author
Owner

@luckypoem commented on GitHub (Dec 27, 2019):

https://github.com/bluejekyll/trust-dns/blob/master/crates/server/tests/named_test_configs/example.toml shows "404",
nothing here?

<!-- gh-comment-id:569231468 --> @luckypoem commented on GitHub (Dec 27, 2019): https://github.com/bluejekyll/trust-dns/blob/master/crates/server/tests/named_test_configs/example.toml shows "404", nothing here?
Author
Owner
<!-- gh-comment-id:569250604 --> @Darkspirit commented on GitHub (Dec 27, 2019): https://github.com/bluejekyll/trust-dns/blob/master/tests/test-data/named_test_configs/example.toml
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#545
No description provided.