Skip to content

Commit 31cc58a

Browse files
Document the purpose of this tool, closes #1
1 parent 9687db0 commit 31cc58a

File tree

3 files changed

+51
-16
lines changed

3 files changed

+51
-16
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[package]
22
name = "facet-dev"
3-
publish = false
43
version = "0.1.1"
54
edition = "2021"
65
description = "Internal development utilities for Facet"

README.md

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
1-
<h1>
2-
<picture>
3-
<source type="image/webp" media="(prefers-color-scheme: dark)" srcset="https://github.com/facet-rs/facet/raw/main/static/logo-v2/facet-b-dark.webp">
4-
<source type="image/png" media="(prefers-color-scheme: dark)" srcset="https://github.com/facet-rs/facet/raw/main/static/logo-v2/facet-b-dark.png">
5-
<source type="image/webp" srcset="https://github.com/facet-rs/facet/raw/main/static/logo-v2/facet-b-light.webp">
6-
<img src="https://github.com/facet-rs/facet/raw/main/static/logo-v2/facet-b-light.png" height="35" alt="Facet logo - a reflection library for Rust">
7-
</picture>
8-
</h1>
1+
# facet-dev
92

10-
[![Coverage Status](https://coveralls.io/repos/github/facet-rs/facet/badge.svg?branch=main)](https://coveralls.io/github/facet-rs/facet?branch=main)
3+
[![Coverage Status](https://coveralls.io/repos/github/facet-rs/facet-dev/badge.svg?branch=main)](https://coveralls.io/github/facet-rs/facet?branch=main)
114
[![crates.io](https://img.shields.io/crates/v/facet-dev.svg)](https://crates.io/crates/facet-dev)
125
[![documentation](https://docs.rs/facet-dev/badge.svg)](https://docs.rs/facet-dev)
136
[![MIT/Apache-2.0 licensed](https://img.shields.io/crates/l/facet-dev.svg)](./LICENSE)
147
[![Discord](https://img.shields.io/discord/1379550208551026748?logo=discord&label=discord)](https://discord.gg/JhD7CwCJ8F)
158

16-
_Logo by [Misiasart](https://misiasart.com/)_
9+
facet-dev runs as a pre-commit hook for most (all?) repositories under
10+
the <https://github.com/facet-rs/> umbrella.
11+
12+
It:
13+
14+
* Generates `README.md` from `README.md.in`
15+
* Sets up a base CI pipeline for Rust crates (see `src/.github/workflows`)
16+
* Sets up funding information
17+
* Sets up a pre-commit hook via [cargo-husky](https://lib.rs/crates/cargo-husky)A=
18+
that installs facet-dev and runs `facet-dev generate`
19+
20+
Since the pre-commit hook installs the latest facet-dev from git, and since
21+
updated files generated files are unconditionally staged at pre-commit time, if
22+
facet-dev gets updated in the middle of someone working on something, the
23+
changes might end up in an unrelated PR. Oh well.
24+
25+
## Sponsors
1726

18-
Thanks to all individual and corporate sponsors, without whom this work could not exist:
27+
Thanks to all individual sponsors:
1928

2029
<p> <a href="https://ko-fi.com/fasterthanlime">
2130
<picture>
@@ -28,9 +37,18 @@ Thanks to all individual and corporate sponsors, without whom this work could no
2837
<img src="https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/github-light.svg" height="40" alt="GitHub Sponsors">
2938
</picture>
3039
</a> <a href="https://patreon.com/fasterthanlime">
40+
<picture>
41+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/patreon-dark.svg">
42+
<img src="https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/patreon-light.svg" height="40" alt="Patreon">
43+
</picture>
44+
</a> </p>
45+
46+
...along with corporate sponsors:
47+
48+
<p> <a href="https://aws.amazon.com">
3149
<picture>
32-
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/patreon-dark.svg">
33-
<img src="https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/patreon-light.svg" height="40" alt="Patreon">
50+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/aws-dark.svg">
51+
<img src="https://github.com/facet-rs/facet/raw/main/static/sponsors-v3/aws-light.svg" height="40" alt="AWS">
3452
</picture>
3553
</a> <a href="https://zed.dev">
3654
<picture>
@@ -44,7 +62,11 @@ Thanks to all individual and corporate sponsors, without whom this work could no
4462
</picture>
4563
</a> </p>
4664

47-
Internal crate that generates some of the code for `facet-core`.
65+
...without whom this work could not exist.
66+
67+
## Special thanks
68+
69+
The facet logo was drawn by [Misiasart](https://misiasart.com/)_
4870

4971
## License
5072

README.md.in

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
Internal crate that generates some of the code for `facet-core`.
1+
facet-dev runs as a pre-commit hook for most (all?) repositories under
2+
the <https://github.com/facet-rs/> umbrella.
3+
4+
It:
5+
6+
* Generates `README.md` from `README.md.in`
7+
* Sets up a base CI pipeline for Rust crates (see `src/.github/workflows`)
8+
* Sets up funding information
9+
* Sets up a pre-commit hook via [cargo-husky](https://lib.rs/crates/cargo-husky)A=
10+
that installs facet-dev and runs `facet-dev generate`
11+
12+
Since the pre-commit hook installs the latest facet-dev from git, and since
13+
updated files generated files are unconditionally staged at pre-commit time, if
14+
facet-dev gets updated in the middle of someone working on something, the
15+
changes might end up in an unrelated PR. Oh well.

0 commit comments

Comments
 (0)