I have been working on this recently, and the code changed a lot. At the time of pasting I had not versioned anything so this is unfortunately lost !
I am trying to put together a rust library so it can be used as a crate in other projects.
I still need to figure out some licencing choices, and do a bit of cleanup, then my intention is to publish it on github so people can use it and make it better eventually . Now keep in mind this is dirty code , totally unsupported and mainly a way for me to get to learn rust and the safe network mechanics ! I am not an experienced coder.
@dallyshalla and everyone interested, I pushed an initial state of the library
This should be compiled as a library and will allow you to talk to the launcher with rust. I included an example as “main.rs” to be built as an executable - I suppose it should go to “examples”, I’ll figure it out later.
again, please remind that this is an exercise for me, mainly a way to learn to use rust and understand how things work in the Safe Network. The code may appear ugly, may not work at all or be outdated, may very well explode your computer and burn the house, spouse may go with the neighbor…
I hope this can be used as a base to build interesting projects, and that people will fork it and make it better.
Constructive comments and advice will be very much welcome !
note: /run/media/Andromedia/git/rsafe/target/debug/deps/libopenssl-4082d291dfec4f37.rlib(openssl-4082d291dfec4f37.0.o): In function openssl::ssl::SslMethod::to_raw': /home/grizmo/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/openssl-0.6.7/src/ssl/mod.rs:135: undefined reference to SSLv3_method’
/run/media/Andromedia/git/rsafe/target/debug/deps/libopenssl-4082d291dfec4f37.rlib(openssl-4082d291dfec4f37.0.o): In function openssl::ssl::SslMethod::from_raw': /home/grizmo/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/openssl-0.6.7/src/ssl/mod.rs:153: undefined reference to SSLv3_method’
collect2: error: ld returned 1 exit status
error: aborting due to previous error
Could not compile rsafe.
By looking at the request crate, it uses openssl 6.7. That is possibility why I can’t get it working?
This error I am not familiar with, I had similar problem where there were 2 versions being imported ssl 0.7.0 and ssl 0.6.7 so I just used a lower version of hyper that uses 0.6.7
this seems different; but it could be a potential solution to get it to build right away for @anon81773980 a little swamped atm