Code Monkey home page Code Monkey logo

Comments (4)

hasezoey avatar hasezoey commented on August 30, 2024

When using compiled binary (by cargo install dsync, not cargo add dsync), --async option is not there.

you need to compile it with the feature enabled, async is not a default feature

use cargo install dsync --features async

from dsync.

jjangga0214 avatar jjangga0214 commented on August 30, 2024

Yes, but that does not mean it will create async code, in my experience.
And the freedom to choose on Runtime is still cool, IMHO.

from dsync.

hasezoey avatar hasezoey commented on August 30, 2024

i dont quite understand what this issue is about, so some general information:

for async code to be generated, you need to:

  • enable feature async at compile time
  • enable via flag --async at runtime

dsync/src/bin/main.rs

Lines 57 to 60 in 007ace8

/// uses diesel_async for generated functions; see https://github.com/weiznich/diesel_async
#[arg(long = "async")]
#[cfg(feature = "async")]
pub use_async: bool,

from dsync.

jjangga0214 avatar jjangga0214 commented on August 30, 2024

Oh, I checked --help but missed reading --async.
Probably I thought I did cargo install dsync --features async but actually cargo install dsync.
Thanks for the clarification!

from dsync.

Related Issues (20)

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.