Giter Club home page Giter Club logo

sysrepo-rs's Introduction

sysrepo-rs

Sysrepo Rust binding. Sysrepo is a YANG-based configuration and operational state data store for Unix/Linux applications.

Requirement

Sysrepo-rs depends on sysrepo C library, which depdeds on libyang and some other libraries. Please refer the following project repo to install appropriate dependencies to your system.

https://github.com/sysrepo/sysrepo

Note

This crate is bare minimum auto generated bindings, so most of the function calls to sysrepo are unsafe. There are some examples available in this repo.

sysrepo-rs's People

Contributors

sjtakada avatar koalo avatar vk496 avatar

Stargazers

Mert Makinacı avatar  avatar

Watchers

 avatar James Cloos avatar

sysrepo-rs's Issues

Cargo build error

Hello,

Thank you for your great work! I tried to build your project and test a little bit sysrepo, but I found this kind of errors:

error[E0308]: mismatched types
    --> /var/home/vk496/.cargo/registry/src/github.com-1ecc6299db9ec823/sysrepo-0.2.0/src/lib.rs:1115:25
     |
1115 |                         options,
     |                         ^^^^^^^ expected *-ptr, found `i32`
     |
     = note: expected raw pointer `*mut *mut lyd_node`
                       found type `i32`

error[E0308]: mismatched types
    --> /var/home/vk496/.cargo/registry/src/github.com-1ecc6299db9ec823/sysrepo-0.2.0/src/lib.rs:1119:36
     |
1119 |                 Some(LydNode::from(node))
     |                                    ^^^^ expected *-ptr, found `u32`
     |
     = note: expected raw pointer `*mut lyd_node`
                       found type `u32`

error[E0308]: mismatched types
    --> /var/home/vk496/.cargo/registry/src/github.com-1ecc6299db9ec823/sysrepo-0.2.0/src/lib.rs:1129:25
     |
1129 |                         options,
     |                         ^^^^^^^ expected *-ptr, found `i32`
     |
     = note: expected raw pointer `*mut *mut lyd_node`
                       found type `i32`

error[E0308]: mismatched types
    --> /var/home/vk496/.cargo/registry/src/github.com-1ecc6299db9ec823/sysrepo-0.2.0/src/lib.rs:1133:36
     |
1133 |                 Some(LydNode::from(node))
     |                                    ^^^^ expected *-ptr, found `u32`
     |
     = note: expected raw pointer `*mut lyd_node`
                       found type `u32`

Some errors have detailed explanations: E0061, E0081, E0308, E0425.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `sysrepo` due to 113 previous errors

I supose that this library was written for older sysrepo version (currently I have the v2.1.42). Could you please share what sysrepo version this library is intended to work?

Thank you in advance,

BR,
Valentin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.