Commit Graph

17 Commits

Author SHA1 Message Date
Tobin C. Harding 3fa7889ff7
just: Add update-lock-files alias
More terse more betterer - just ulf already.
2025-05-06 09:30:03 +10:00
Tobin C. Harding 7e0501c03c
Add a script to query the API
Add a simple script that allows one to query the current API. Done by
parsing the API text files and grepping for things.

This is useful as a dev tool as we try to stabalize the leaf crates.
2024-12-06 15:42:28 +11:00
Tobin C. Harding e126a24307
Add API script
Add a script to generate API files using `cargo public-api` for the
crates that we are trying to stabalise (the so called 'leaf crates').

- hashes
- io
- primitives
- units

We already ran the script and committed the files last patch. The fact
that this patch does not include any changes to the `api/` directory and
that CI passes is enough to convince us that last patch was valid.

Add a CI job that runs the script and checks there are no changes to
the committed text files thereby proving no API changes are made in a
PR without explicitly modifying the API text files.

Add documentation to `CONTRIBUTING.md` on what is expected of devs.
2024-12-06 15:42:22 +11:00
Jamil Lambert, PhD bd32d1db78
Add stricter doc test to justfile
In order to show warnings for unused imports etc. in doc examples an
extra test has been added to the justfile for `just lint` and the doc
test in `just sane` has been removed since it calls `just lint`.
2024-09-20 19:57:30 +01:00
Ryan Breen 1b0653314b just: install/remove git hooks 2024-07-13 14:05:32 -04:00
merge-script 68f71d54ca
Merge rust-bitcoin/rust-bitcoin#2967: just: add just docsrs
d07550d86d just: add just docsrs (Jose Storopoli)

Pull request description:

  Adds `just docsrs` which takes [variadic arguments](https://just.systems/man/en/chapter_41.html?highlight=zero%20or#recipe-parameters) (zero or more after the command).

  Kixunil this allows for `just docsrs` and `just docsrs --open`.

  Closes #2965.

  Using the command from `rust-bitcoin-maintainer-tools`: 3494ceec52/ci/run_task.sh (L277)

ACKs for top commit:
  jamillambert:
    ACK d07550d86d
  Kixunil:
    ACK d07550d86d
  apoelstra:
    ACK d07550d86d

Tree-SHA512: dfc8a91bf9d572cb0cb460102f051aabe026fde2852ef2c82e962f0c60d8532628aa15bb99590a6140871d5539cdd9e5c6f80d0684fc128031f1c930e66e99ff
2024-07-05 18:45:28 +00:00
Jose Storopoli d07550d86d
just: add just docsrs 2024-07-05 08:15:37 -03:00
Jose Storopoli d9567b097f
ci: remove check-api
Removes check-api workflow, helper scripts, documentation, and files.
2024-07-04 10:08:06 +00:00
Tobin C. Harding 76331aeee3
Add a just cmd to check for API changes
Add a `just` command to run the API checking script. Makes it more
discoverable.
2024-05-18 09:54:53 +10:00
Tobin C. Harding e565e06b0c
just: Add just fmt
We already have a `just` command to check the formatting, add one to run
the formatter. Use the more terse `just fmt` although the difference
from `just format` is not super obvious it is documented in the default
output of `just`.
2024-04-11 11:47:08 +10:00
Tobin C. Harding 1a85eac01b
Move nightly_version file to crate root
The nightly pinning is used by a bunch of different tools outside of
github actions, move the config file to the crate root.

Update the path in the justfile.

Done in preparation for fixing the git pre-commit hook.
2024-04-04 15:42:12 +11:00
Tobin C. Harding 288ed33afa
just: Use pinned nightly
Use the nightly version that we use in CI when running `just` commands
that use the nightly toolchain.
2024-04-03 09:12:53 +11:00
Tobin C. Harding bd4f14ee51
just: Reduce docs commands
`cargo --doc` works from the workspace root, no need to run the docs
builds individually.
2024-01-30 09:00:56 +11:00
Tobin C. Harding 61f8bab65f
just: Add quick and dirty CI command
Add a command that attempts to cove a reasonable useful subset of our CI
checks in order to hasten development.
2024-01-27 14:10:58 +11:00
Tobin C. Harding e185fe46df
just: Lint with nightly toolchain
Recently we switched to using the nightly toolchain to lint, update the
`justfile` appropriately.
2024-01-15 06:43:33 +11:00
Tobin C. Harding 79dfe8d270
justfile: Add update-lock-files command
If our custom dev scripts get a `just` command it makes them more
discoverable for new contributors.

Add a command to run the `update-lock-files.sh` script.
2023-10-18 13:52:41 +11:00
Tobin C. Harding eccd3fe57b
Introduce a basic justfile
Introduce usage of `just` by adding a basic `justfile`.
2023-08-31 13:19:49 +10:00