11 unstable releases (4 breaking)

0.5.0 Apr 23, 2024
0.4.1 Nov 14, 2023
0.4.0 Jul 21, 2023
0.3.3 Mar 18, 2023
0.3.1 Apr 29, 2022

#123 in Configuration

Download history 1264/week @ 2024-07-28 592/week @ 2024-08-04 1570/week @ 2024-08-11 1468/week @ 2024-08-18 2474/week @ 2024-08-25 1753/week @ 2024-09-01 2026/week @ 2024-09-08 1592/week @ 2024-09-15 1962/week @ 2024-09-22 1779/week @ 2024-09-29 1151/week @ 2024-10-06 2727/week @ 2024-10-13 1888/week @ 2024-10-20 1128/week @ 2024-10-27 704/week @ 2024-11-03 952/week @ 2024-11-10

4,738 downloads per month

MIT/Apache

105KB
1K SLoC

netplan-types

Motivation

This crate attempts to map the entire netplan configuration into Rust structs and enums. The 'layout' is as close to what you'd write in your netplan YAML files.

The intented use of this crate is to allow for easy editing of the network configuration via the netplan configuration files from a Rust program.

Based on the documentation from netplan, which can be found here Please note that I do not check the docs often for updates, if anything is missing or incorrect in the future, please open an issue or a pull-request so the issue can be addressed.

Features

  • serde [Default] Add serde support
  • derive_builder Enable the derive_builder crate for an automatically generated builder pattern API
  • schemars Allow generation of a JSON schema

License

This crate is licensed under the MIT license, or the Apache 2.0 license, at your discretion.


lib.rs:

netplan-types

Motivation

This crate attempts to map the entire netplan configuration into Rust structs and enums. The 'layout' is as close to what you'd write in your netplan YAML files.

The intented use of this crate is to allow for easy editing of the network configuration via the netplan configuration files from a Rust program.

Based on the documentation from netplan, which can be found here Please note that I do not check the docs often for updates, if anything is missing or incorrect in the future, please open an issue or a pull-request so the issue can be addressed.

Features

  • serde: [Default] Add serde support
  • derive_builder Enable the derive_builder crate for an automatically generated builder pattern API
  • schemars: Enable the schemars crate for generating a JSON schema from the structs

Dependencies

~0.3–1.1MB
~26K SLoC