srwalter / dbus-bytestream Goto Github PK
View Code? Open in Web Editor NEWNative D-Bus implementation for Rust
License: GNU Lesser General Public License v2.1
Native D-Bus implementation for Rust
License: GNU Lesser General Public License v2.1
It'd be nice to be able to hook into an event loop rather than having to rely on a blocking call to read messages.
It appears this is only for communicating over D-Bus, not for setting up a service on the bus.
Related, any plans for converting from an XML description to a Rust skeleton (c.f., qdbusxml2cpp
from Qt)?
Could a new release be tagged? I'd like to be able to upload some crates which require the PRs I've filed. Thanks.
When a message signature contains an array, but the message body actually contains no elements, parsing incorrectly fails with DemarshalError::MismatchedParens
, due to invalid handling in
dbus-bytestream/src/demarshal.rs
Lines 185 to 195 in f7f7d1c
Note that if the while loop doesn't execute even once, sig_copy
will remain empty, and the currently parsed sig
will be unconditionally emptied, instead of being set to fields remaining to be parsed.
Maybe I'll fix the bug myself later and publish a PR, but meanwhile here's an example failing test case with an array in the middle of a simple struct. Both nonempty and empty array tests are added for contrast.
It's great to see a native Rust dbus protocol implementation and I would like to somehow use this as a backend for a Rust native alternative to dbus-codgen
or an alternative to dbus-tokio aka dbus-bytestream-tokio. Given the LGPL license I feel though it might be quite hard to use this in anything other than LGPL or GPL code since the library is by default linked statically. Don't get me wrong I entirely get the changes / fixes etc. should be upstreamed part and support that. Would you mind considering e.g. MPL, MIT or Apache ... ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.