8000 Infrastructure fixes by tcharding · Pull Request #1935 · rust-bitcoin/rust-bitcoin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Infrastructure fixes #1935

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

Merged
merged 5 commits into from
Jul 19, 2023

Conversation

tcharding
Copy link
Member

Do a bunch of infrastructure fixes that either are needed for adding additional crate deps (hex) or updating deps (internals, hashes), or just make the tests more maintainable.

@tcharding tcharding force-pushed the 07-13-infrastructure-fixes branch from fdc6ee9 to 1041ad5 Compare July 13, 2023 04:06
@apoelstra
Copy link
Member

It looks like the new Cargo-minimal.lock does not actually work.

@tcharding tcharding force-pushed the 07-13-infrastructure-fixes branch from 1041ad5 to 716dde2 Compare July 14, 2023 01:28
@tcharding
Copy link
Member Author
tcharding commented Jul 14, 2023

Ok, I was misunderstanding how to update the lock files, now I read the instructions in CONTRIBUTING.md. Removed the lock file stuff from this PR as it is unnecessary.

apoelstra
apoelstra previously approved these changes Jul 14, 2023
Cop 8000 y link
Member
@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 716dde25f22bad64e117a26424dc9e50a65d2d79

@tcharding tcharding force-pushed the 07-13-infrastructure-fixes branch from 716dde2 to 4c64173 Compare July 18, 2023 00:26
We use two different methods for specifying local dependencies, `patch`
and also `path`. There does not seem to be a reason why we use both,
lets be uniform. Elect to use `patch` for all local crates.
In order to keep the embedded and schemacs test crates building when we
update their local transient dependencies we need to use a `patch`
section.

- For `bitcoin/embedded` add `patch` section for `internals`, `hashes`
already has an entry.
- For `hashes/embedded` add `patch` section for `internals`.
- For `hashes/extendend_tests/schemars` add `patch` section for
  `internals`.

FTR for direct local dependencies we use a `path` field when specifying
the dependency.
To help folk work out how to run the `hashes/embedded` test crate copy
over the `script` directory and an updated version of the `README` from
`embedded/bitcoin`.
When building the `embedded` test crate `clippy` emits two warnings
of form:

  warning: unused v
8000
ariable: `foo`

Use `_` instead of a named variable.
Not totally necessary but since I went to the trouble of working out the
last working version add it to the docs so the next guy can grep for
`cargo update` to find them.
@tcharding
Copy link
Member Author

Rebased on master, no other changes.

Copy link
Member
@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 7b402e9

Copy link
Member
@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

ACK 7b402e9

@apoelstra apoelstra merged commit 894c926 into rust-bitcoin:master Jul 19, 2023
@tcharding tcharding deleted the 07-13-infrastructure-fixes branch July 20, 2023 05:07
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
0