woboq / qmetaobject-rs

Integrate Qml and Rust by building the QMetaObject at compile time.
MIT License
633 stars 89 forks source link

Crates.io #6

Closed keeslinp closed 6 years ago

keeslinp commented 6 years ago

Are there any plans to release this to crates.io? I did a quick search and was unable to find anything so far. If I'm mistaken could you point me in the right direction?

Cool idea though, can't wait to play around with it.

ogoffart commented 6 years ago

This is still an early pre-alpha. The raison it is not yet on crates.io is that it depends on a fork of the cpp crate and would need https://github.com/mystor/rust-cpp/pull/31 to be merged. Also there is a Qt dependency, i'm not quite sure how to specify that in the Cargo.toml file.

nbigaouette commented 6 years ago

PR was merged a couple hours ago.

As for the dependency on Qt, you can take a look at what qmlrs is doing through a build script: https://github.com/cyndis/qmlrs/blob/master/build.rs Nothing in Cargo.toml needs to be changed...

florianjacob commented 6 years ago

If there are any questions regarding the build.rs Qt dependency integration, please ask, I'm lurking here. :wink:

qmetabobject-rs looks way better than what I hoped to achieve with my qmlrs rewrite based on libqmlbind, so I'll probably abandon that and will try to help out here.

ogoffart commented 6 years ago

Right, now everything needed is merged in rust-cpp. I guess there is the need of a version increase and publish it on crates.io

ogoffart commented 6 years ago

Now that cpp 0.4 was released, I uploaded the crate to crates.io: https://crates.io/crates/qmetaobject