Giter Site home page Giter Site logo

Comments (4)

danbugs avatar danbugs commented on June 8, 2024 1

I guess my main point is that the current new command creates a slight application that automatically adds the keyvalue interface in, which probably isn't what the user wants. In addition to that, the way we use slight http-server capability requires users to edit many files:

  • rename main.rs to lib.rs
  • add [lib] section to Cargo.toml
  • add http-server capability
  • add slight macro dependencies to Cargo.toml

This isn't a great experience imo.

I agree that users might not always want keyvalue, but that template is just the most basic one we have w/ the most basic application possible. To fit other users needs, we need to create other templates – for your example, that would be smt like http-rust.

Also, I think our current template does have the slight macro dependency already added to the Cargo.toml, and all the other changes required that you mentioned are because of recent code changes.

from spiderlightning.

danbugs avatar danbugs commented on June 8, 2024

I think slight new -n spidey -l rust -c keyvalue -s redis -v 0.4.0 is very messy and error prone.

The thing is: slight new -n [email protected] rust is not meant to be something that covers all use-cases. Instead, after running slight new, if people want to add other capabilities they can use slight add.

For example, while I was crafting my WasmIO demo, I did:

slight new -n [email protected] rust && cd wasmio-demo
cd wit && slight add [email protected]

from spiderlightning.

Mossaka avatar Mossaka commented on June 8, 2024

I guess my main point is that the current new command creates a slight application that automatically adds the keyvalue interface in, which probably isn't what the user wants. In addition to that, the way we use slight http-server capability requires users to edit many files:

  • rename main.rs to lib.rs
  • add [lib] section to Cargo.toml
  • add http-server capability
  • add slight macro dependencies to Cargo.toml

This isn't a great experience imo.

from spiderlightning.

Mossaka avatar Mossaka commented on June 8, 2024

this sounds good to me. I will be working on a http-server-rust template for http-server template.

Another concern of mine is how we can maintain the templates - each time we bump up the CLI version, we will have to bump up the version used in the templates. Any mistakes in this process would cause a re-deployment. Can we somehow make the dep versions in the templates aligned with CLI version automatically?

from spiderlightning.

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.