-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to libyang 3.1.0 and release yang3 0.1.0
Support for libyang v2 will continue in the yang2 branch. Signed-off-by: Renato Westphal <[email protected]>
- Loading branch information
Showing
28 changed files
with
113 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "libyang2-sys/libyang"] | ||
path = libyang2-sys/libyang | ||
[submodule "libyang3-sys/libyang"] | ||
path = libyang3-sys/libyang | ||
url = https://github.com/CESNET/libyang.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
[package] | ||
name = "yang2" | ||
version = "0.13.1" | ||
name = "yang3" | ||
version = "0.1.0" | ||
authors = ["Renato Westphal <[email protected]>"] | ||
description = "libyang2 bindings for Rust" | ||
description = "libyang3 bindings for Rust" | ||
keywords = ["yang", "libyang"] | ||
edition = "2018" | ||
license = "MIT" | ||
repository = "https://github.com/holo-routing/yang2-rs" | ||
documentation = "https://docs.rs/yang2" | ||
repository = "https://github.com/holo-routing/yang-rs" | ||
documentation = "https://docs.rs/yang3" | ||
readme = "README.md" | ||
categories = ["parser-implementations"] | ||
exclude = ["assets/**"] | ||
|
||
[dependencies] | ||
libyang2-sys = { path = "libyang2-sys", version = "0.9.0" } | ||
libyang3-sys = { path = "libyang3-sys", version = "0.1.0" } | ||
bitflags = "2.5" | ||
num-traits = "0.2" | ||
num-derive = "0.4" | ||
|
@@ -33,5 +33,5 @@ harness = false | |
|
||
[features] | ||
default = [] | ||
use_bindgen = ["libyang2-sys/use_bindgen"] | ||
bundled = ["libyang2-sys/bundled"] | ||
bindgen = ["libyang3-sys/bindgen"] | ||
bundled = ["libyang3-sys/bundled"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule libyang
deleted from
4c7334
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[package] | ||
name = "libyang2-sys" | ||
version = "0.9.0" | ||
name = "libyang3-sys" | ||
version = "0.1.0" | ||
authors = ["Renato Westphal <[email protected]>"] | ||
description = "Raw FFI bindings for libyang2" | ||
description = "Raw FFI bindings for libyang3" | ||
keywords = ["yang", "libyang"] | ||
edition = "2018" | ||
license = "MIT" | ||
documentation = "https://docs.rs/libyang2-sys" | ||
documentation = "https://docs.rs/libyang3-sys" | ||
categories = ["external-ffi-bindings"] | ||
|
||
[dependencies] | ||
|
@@ -21,8 +21,8 @@ pkg-config = "0.3.27" | |
# Use pre-generated FFI bindings | ||
default = [] | ||
# Generate FFI bindings dynamically. | ||
# For this to work libyang2 needs to be installed in the system. | ||
use_bindgen = ["bindgen"] | ||
# Bundle libyang2 C files into a static archive linked to this crate. | ||
# This removes the libyang2 dynamic link dependency. | ||
bundled = ["cc", "cmake"] | ||
# For this to work libyang3 needs to be installed in the system. | ||
bindgen = ["dep:bindgen"] | ||
# Bundle libyang3 C files into a static archive linked to this crate. | ||
# This removes the libyang3 dynamic link dependency. | ||
bundled = ["dep:cc", "dep:cmake"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.