GithubHelp home page GithubHelp logo

Comments (2)

joshtriplett avatar joshtriplett commented on June 20, 2024

cc @epage

from lang-team.

joshtriplett avatar joshtriplett commented on June 20, 2024

Spelling out some possibilities discussed in the meeting:

  • One option would be to say that the only thing that interprets the ``` blocks is the interpreter on the shebang line, and if it doesn't understand a block it should reject it. Cargo could then reject anything other than cargo, or in the future cargo-lock, and rustc would ignore everything.
  • Another option would be for rustc to have an allowlist of what it ignores, and error on anything else.

What to do here depends somewhat on where we see future extensions going. If we expect this to only be used by scripts, the former option seems reasonable: the script interpreter can take responsibility for the namespace. If we expect this to be potentially used by other Rust tools as well (e.g. an ```analyzer block to pass info to rust-analyzer, or a block for some other tool), then we may want to have rustc manage the allowlist.

Some folks in the meeting objected to the idea of having broader usage/extensions that weren't for scripts. Some folks objected to the idea of not having an allowlist somewhere (either in rustc or cargo).

I'm hoping we can reach a consensus to narrowly allow cargo for now, which gives us the future option of either dropping or extending the safelist.

from lang-team.

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.