Skip to content

Commit cb52391

Browse files
committed
Initial tree
0 parents  commit cb52391

File tree

11 files changed

+4846
-0
lines changed

11 files changed

+4846
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target/
2+
/Cargo.lock

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "libyaml"]
2+
path = libyaml
3+
url = https://github.com/yaml/libyaml.git

Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
authors = ["Mikhail Solovev <icee@icee.ru>"]
3+
build = "build.rs"
4+
categories = ["external-ffi-bindings"]
5+
description = "Low-level bindings for the LibYAML library"
6+
documentation = "https://docs.rs/libyaml-sys"
7+
edition = "2018"
8+
homepage = "https://github.com/fatemender/libyaml-sys"
9+
keywords = ["ffi", "libyaml", "yaml"]
10+
license = "MIT"
11+
name = "libyaml-sys"
12+
readme = "README.md"
13+
repository = "https://github.com/fatemender/libyaml-sys"
14+
version = "0.1.0"
15+
16+
[dependencies]
17+
libc = "0.2"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Mikhail Solovev
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[![crates.io](https://img.shields.io/crates/v/libyaml-sys.svg)](https://crates.io/crates/libyaml-sys)
2+
3+
# libyaml-sys
4+
5+
This Rust crate provides low-level bindings for the [LibYAML] library,
6+
version 0.2.2. It has the following limitations:
7+
8+
* the `yaml` library must be available on the system, no attempt is made to
9+
build it from source.
10+
11+
[LibYAML]: https://github.com/yaml/libyaml
12+
13+
## Installation
14+
15+
First, compile LibYAML as a shared or static library and install it. Then add
16+
this crate to your `Cargo.toml`:
17+
18+
```toml
19+
[dependencies]
20+
libyaml-sys = "0.1.0"
21+
```
22+
23+
## License
24+
25+
This crate is licensed under the [MIT license].
26+
27+
[MIT license]: LICENSE

build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("cargo:rustc-link-lib=yaml");
3+
}

libyaml

Submodule libyaml added at 690a781

0 commit comments

Comments
 (0)