Compiling qmlrs with self_encryption

to combine MaidSafe’s self_encryption with qmlrs - QML Rustlang binding:


Cargo.toml

[package]

name = "qmlrs"
version = "0.0.1"
authors = ["Mikko Perttunen <cyndis@kapsi.fi>"]
license = "MIT/Apache-2.0"

build = "build.rs"

[dependencies]
libc = "*"
rand = "*"
tempdir = "*"
docopt = "*"
rustc-serialize = "*"
rust-crypto = "*"
cbor = "*"
asynchronous = "*"

[build-dependencies.pkg-config]
git = "https://github.com/alexcrichton/pkg-config-rs"

[dependencies.self_encryption]
git = "https://github.com/maidsafe/self_encryption.git"
2 Likes

maybe better to fix your Cargo.toml to a fixed version of Self-Encryption, so that new changes don’t break your code; and you jump version numbers after testing that our latest version number is stable and compatible with your work

I’ll ping Brian on this

2 Likes

I don’t see this in the latest master code though. Have you pulled latest from upstream?

Can you post your cargo.toml file for your project?

otherwise try explicitly refering to the github

drop

self_encryption = "*"```

and add at the bottom
```[dependencies.self_encryption]
git = "https://github.com/maidsafe/self_encryption.git"```
(edited)

Ben B [8:29 PM]
maybe the crates version pushed is broken...

@qi_ma; can you ping brian on this as well?
2 Likes

remember the " " in

[dependencies.self_encryption]
git = "https://github.com/maidsafe/self_encryption.git"  

[package]

name = "qmlrs"
version = "0.0.1"
authors = ["Mikko Perttunen <cyndis@kapsi.fi>"]
license = "MIT/Apache-2.0"

build = "build.rs"

[dependencies]
libc = "*"
rand = "*"
tempdir = "*"
docopt = "*"
rustc-serialize = "*"
rust-crypto = "*"
cbor = "*"
asynchronous = "*"

[build-dependencies.pkg-config]
git = "https://github.com/alexcrichton/pkg-config-rs"

[dependencies.self_encryption]
git = "https://github.com/maidsafe/self_encryption.git"
2 Likes

I bet you guys speak binary, too. :wink:

3 Likes

Are you trying to build a UI for self encryption? I am new to rust but eager to lern more and I have some experience with qml/QT and UI building in general. Maybe we could work together?

1 Like

@Liamsi In case you’ve not seen it I added some UI options for Rust SAFE Apps today to https://safenetforum.org/t/how-to-build-an-app-on-safe-network/3696