Code Monkey home page Code Monkey logo

ice-rs's People

Contributors

cemoktra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

underus yutiansut

ice-rs's Issues

It's cool!pls keep going!

i have use ZeroC ICE before,it's very good distributed framework!
i'am happy to see there is somebody build this client for rust!
keep going!
if bother u,sorry.

IceObject trait

Add an IceObject trait with basic functions for all generated traits.

ice_ping
ice_id
ice_ids
ice_isA
dispatch

Add async calls

Currently preferred would be Tokio. But up for discussion.

  • Replace std::net::TcpStream with tokio::net::TcpStream
  • Async Reply reader

Add #[allow(non_camel_case_types)] to enums

Is your feature request related to a problem? Please describe.
We are working on porting an existing codebase to rust. Our ice interface looks like this

    enum MessageType { eUNDEFINED, eDEBUG, eVERBOSE, eINFO, eIMPORTANT, eWARN, eERROR, eFATAL, eLogLevelCount };

    struct LogMessage{
        string who;
        long time;
        string group;
        string tag;
        MessageType type;
        string what;
        string file;
        int line;
        string function;
        string backtrace;
        int threadId;

    };

This generates a lot of warnings like this

warning: variant `eUNDEFINED` should have an upper camel case name
  --> src/gen/armarx/mod.rs:18:5
   |
18 |     eUNDEFINED = 0i32,
   |     ^^^^^^^^^^ help: convert the identifier to upper camel case: `EUndefined`
   |
   = note: `#[warn(non_camel_case_types)]` on by default

Describe the solution you'd like
Adding #[allow(non_camel_case_types)] in front of enums supresses this warning.

Describe alternatives you've considered
I added it manually, but this is not a feasible solution.

Support Class Derivation

Ice allows to derive classes. As rust has no such thing, this needs to be implemented with structs.

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.