Skip to content

Commit 6a19f9c

Browse files
Stub out facet-kdl
1 parent 9e859dc commit 6a19f9c

File tree

7 files changed

+106
-0
lines changed

7 files changed

+106
-0
lines changed

Cargo.lock

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ members = [
2424
"facet-msgpack",
2525
"facet-pretty",
2626
"facet-toml",
27+
"facet-kdl",
2728
"facet-urlencoded",
2829
"facet-yaml",
2930
]

facet-kdl/Cargo.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[package]
2+
name = "facet-kdl"
3+
version.workspace = true
4+
authors.workspace = true
5+
edition.workspace = true
6+
rust-version.workspace = true
7+
license.workspace = true
8+
repository.workspace = true
9+
description = "KDL serialization and deserialization for Facet types"
10+
keywords = ["kdl", "serialization", "deserialization", "reflection", "facet"]
11+
categories = ["encoding", "parsing", "data-structures"]
12+
13+
[features]
14+
std = ["alloc", "facet-core/std", "facet-reflect/std", "num-traits/std"]
15+
alloc = ["facet-core/alloc", "facet-reflect/alloc"]
16+
rich-diagnostics = ["dep:ariadne", "std"]
17+
default = ["std", "rich-diagnostics"]
18+
19+
[dependencies]
20+
ariadne = { version = "=0.5.1", optional = true }
21+
log = "0.4.27"
22+
num-traits = { version = "0.2.19", default-features = false }
23+
facet-core = { version = "0.11.0", path = "../facet-core", default-features = false }
24+
facet-reflect = { version = "0.10.4", path = "../facet-reflect", default-features = false }
25+
owo-colors = "4.2.0"
26+
27+
[dev-dependencies]
28+
facet = { path = "../facet" }
29+
facet-testhelpers = { path = "../facet-testhelpers" }

facet-kdl/README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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>
9+
10+
[![Coverage Status](https://coveralls.io/repos/github/facet-rs/facet/badge.svg?branch=main)](https://coveralls.io/github/facet-rs/facet?branch=main)
11+
[![free of syn](https://img.shields.io/badge/free%20of-syn-hotpink)](https://github.com/fasterthanlime/free-of-syn)
12+
[![crates.io](https://img.shields.io/crates/v/facet-kdl.svg)](https://crates.io/crates/facet-kdl)
13+
[![documentation](https://docs.rs/facet-kdl/badge.svg)](https://docs.rs/facet-kdl)
14+
[![MIT/Apache-2.0 licensed](https://img.shields.io/crates/l/facet-kdl.svg)](./LICENSE)
15+
16+
_Logo by [Misiasart](https://misiasart.com/)_
17+
18+
Thanks to all individual and corporate sponsors, without whom this work could not exist:
19+
20+
<p> <a href="https://ko-fi.com/fasterthanlime">
21+
<picture>
22+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/facet-rs/facet/raw/main/static/sponsors-v2/ko-fi-dark.svg">
23+
<img src="https://github.com/facet-rs/facet/raw/main/static/sponsors-v2/ko-fi-light.svg" height="40" alt="Ko-fi">
24+
</picture>
25+
</a> <a href="https://github.com/sponsors/fasterthanlime">
26+
<picture>
27+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/facet-rs/facet/raw/main/static/sponsors-v2/github-dark.svg">
28+
<img src="https://github.com/facet-rs/facet/raw/main/static/sponsors-v2/github-light.svg" height="40" alt="GitHub Sponsors">
29+
</picture>
30+
</a> <a href="https://patreon.com/fasterthanlime">
31+
<picture>
32+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/facet-rs/facet/raw/main/static/sponsors-v2/patreon-dark.svg">
33+
<img src="https://github.com/facet-rs/facet/raw/main/static/sponsors-v2/patreon-light.svg" height="40" alt="Patreon">
34+
</picture>
35+
</a> <a href="https://zed.dev">
36+
<picture>
37+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/facet-rs/facet/raw/main/static/sponsors-v2/zed-dark.svg">
38+
<img src="https://github.com/facet-rs/facet/raw/main/static/sponsors-v2/zed-light.svg" height="40" alt="Zed">
39+
</picture>
40+
</a> <a href="https://www.blacksmith.sh?utm_source=facet">
41+
<picture>
42+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/facet-rs/facet/raw/main/static/sponsors-v2/blacksmith-dark.svg">
43+
<img src="https://github.com/facet-rs/facet/raw/main/static/sponsors-v2/blacksmith-light.svg" height="40" alt="built with blacksmith">
44+
</picture>
45+
</a> </p>
46+
47+
Provides KDL serialization and deserialization for Facet types (wip)
48+
49+
## License
50+
51+
Licensed under either of:
52+
53+
- Apache License, Version 2.0 ([LICENSE-APACHE](https://github.com/facet-rs/facet/blob/main/LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
54+
- MIT license ([LICENSE-MIT](https://github.com/facet-rs/facet/blob/main/LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
55+
56+
at your option.

facet-kdl/README.md.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Provides KDL serialization and deserialization for Facet types (wip)

facet-kdl/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#![warn(missing_docs)]
2+
#![doc = include_str!("../README.md")]
3+
4+
// cf. facet-toml/facet-json for examples

facet-kdl/tests/basic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Basic tests go here

0 commit comments

Comments
 (0)