Giter Site home page Giter Site logo

Turn ewasm_api into a trait about ewasm-rust-api HOT 4 OPEN

ewasm avatar ewasm commented on June 15, 2024
Turn ewasm_api into a trait

from ewasm-rust-api.

Comments (4)

jakelang avatar jakelang commented on June 15, 2024

@axic I think that EEI as a trait doesn't make sense. I would bottle it up into a module so that it can still be isolated in its own namespace, but since it isn't an interface for a type it shouldn't be a trait.

As a module, EEI methods can be called like ewasm_rust_api::eei::function(args) without being associated to a type.

from ewasm-rust-api.

axic avatar axic commented on June 15, 2024

Whatever is the right Rust term, it would make sense to have the ability to swap out the underlying implementation with preloaded data to enable proper in-Rust testing of the precompiles/runevm.

from ewasm-rust-api.

jakelang avatar jakelang commented on June 15, 2024

@axic I want #6 to be merged before this is implemented, to avoid nasty diffs and merge conflicts.

from ewasm-rust-api.

axic avatar axic commented on June 15, 2024

Here's some initial work from August: https://github.com/ewasm/ewasm-rust-api/tree/turn-into-trait

from ewasm-rust-api.

Related Issues (16)

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.