Skip to content

Leave rust-bitcoin compilation flags untouched#39

Merged
notmandatory merged 1 commit intobitcoindevkit:masterfrom
TheBlueMatt:master
Mar 13, 2023
Merged

Leave rust-bitcoin compilation flags untouched#39
notmandatory merged 1 commit intobitcoindevkit:masterfrom
TheBlueMatt:master

Conversation

@TheBlueMatt
Copy link
Copy Markdown
Contributor

Because wasm_bindgen enables a hobbled std mode by default (where you can "use" the full std, but random bits of it panic), wasm_bindgen users really should use no_std builds where possible. However, cargo makes this very difficult - crates with no_std flags can be silently made std just by one dependency setting the flag silently.

This happens here by leaving default-features enabled. Luckily, we can simply disable default-features and everything else remains.

Because `wasm_bindgen` enables a hobbled `std` mode by default
(where you can "use" the full std, but random bits of it panic),
`wasm_bindgen` users really should use `no_std` builds where
possible. However, cargo makes this very difficult - crates with
`no_std` flags can be silently made `std` just by one dependency
setting the flag silently.

This happens here by leaving default-features enabled. Luckily, we
can simply disable `default-features` and everything else remains.
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 4328703035

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 80.077%

Totals Coverage Status
Change from base Build 4075363726: 0.0%
Covered Lines: 832
Relevant Lines: 1039

💛 - Coveralls

Copy link
Copy Markdown
Member

@notmandatory notmandatory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK ac52e95

@notmandatory notmandatory merged commit 7f0e73b into bitcoindevkit:master Mar 13, 2023
notmandatory added a commit to bitcoindevkit/bdk that referenced this pull request Mar 15, 2023
bb2b2d6 Update esplora-client dependency to version 0.4 (Steve Myers)

Pull request description:

  ### Description

  Update the `esplora-client` to the new `0.4` release.

  ### Notes to the reviewers

  The `esplora-client` was updated in bitcoindevkit/rust-esplora-client#39 to not include default `rust-bitcoin` dependencies.

  ### Changelog notice

  - Update the `esplora-client` optional dependency to version `0.4`.

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

ACKs for top commit:
  vladimirfomene:
    ACK bb2b2d6
  rajarshimaitra:
    tACK bb2b2d6

Tree-SHA512: 0f277106166ab4a8144a641ac9507f1a32d735f99c0b73a026ff6e0b82589110a71fe81f880caa01dab247572f3146b771cc28bdab5b22bcd87ff628e15b2e1a
chrono-raven6i90 added a commit to chrono-raven6i90/rust-esplora-client that referenced this pull request Oct 28, 2025
…ilation flags untouched

ac52e9525e8bfa29d3f1e1e8a132eaa8444c36ce Leave `rust-bitcoin` compilation flags untouched (Matt Corallo)

Pull request description:

  Because `wasm_bindgen` enables a hobbled `std` mode by default (where you can "use" the full std, but random bits of it panic), `wasm_bindgen` users really should use `no_std` builds where possible. However, cargo makes this very difficult - crates with `no_std` flags can be silently made `std` just by one dependency setting the flag silently.

  This happens here by leaving default-features enabled. Luckily, we can simply disable `default-features` and everything else remains.

ACKs for top commit:
  notmandatory:
    ACK ac52e9525e8bfa29d3f1e1e8a132eaa8444c36ce

Tree-SHA512: a42d0dbfb1b07f7e218e887c6cb8b4b74b3c5854db3d596a7e8e259a4b54b6737bca9997cff22bbf8768d93b300616e03a79c153106cb23b57022b882afcb8b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants