Coder Social home page Coder Social logo

adnanademovic / simetry Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 8.0 199 KB

Rust library for interfacing with telemetry of various racing and driving sims

License: MIT License

Rust 83.36% C 12.13% C++ 4.52%
assetto-corsa assetto-corsa-competizione assettocorsa iracing sim-racing simracing american-truck-simulator euro-truck-simulator-2 rfactor2 rust

simetry's Issues

Cannot use Client::connect in a background task

Hi,

I cannot seem to use Client::connect in a background tokio task:

#[tokio::main]
async fn main() {
  tokio::spawn(async move {
    let mut client = Client::connect(Duration::from_secs(1)).await;
    // do some iRacing stuff
  });

  // do something else
}

The error is: future is not Send as this value is used across an await, caused by `src\iracing\client.rs:267``:

image

serde_yaml instead of yaml-rust

Hi,

I've noticed simetry uses serde and serde_json, and also yaml-rust. yaml-rust doesn't seem to have serde's traits implemented.
Maybe it would be better to use a library like serde_yaml for Serde support.
This is a breaking change, but it would unify the usage for YAML and JSON. My use case would be to use from_value to convert the iRacing Yaml to a typed struct.

Also, yaml-rust doesn't seem to be maintained.

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.