Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo extension for compiling Rust to MASM #61

Merged
merged 22 commits into from
Dec 12, 2023
Merged

Commits on Nov 21, 2023

  1. Configuration menu
    Copy the full SHA
    367bb3c View commit details
    Browse the repository at this point in the history
  2. test: draft compile command using the midenc_driver, add test

    compiling a template project
    greenhat committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    f09a893 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e706024 View commit details
    Browse the repository at this point in the history
  4. fix: emit Session artifact in CodegenStage, don't require Session.mat…

    …ches in ApplyRewritesStage
    
    Otherwise, ApplyRewritesStage crashes when arg matches are not provided in Session.
    greenhat committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    66a3d32 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    134fce3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2db01ff View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    555051b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5ad3645 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e108242 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    58d3309 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    824a8eb View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    62adf34 View commit details
    Browse the repository at this point in the history
  13. fix build after rebase

    greenhat committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    af32c71 View commit details
    Browse the repository at this point in the history
  14. refactor: switch from emiting MASM in CodegenStage, and switch to out…

    …put folder in cargo extension
    
    Add WasmTranslationConfig::module_name_fallback to use if Wasm module
    doesn't specify a name in the custom section.
    In `Session::emit` if the path is a directory, emit to a file in that directory
    named after a compiled item(module) name.
    greenhat committed Nov 21, 2023
    Configuration menu
    Copy the full SHA
    5a8a6ed View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    91a8b3c View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2023

  1. Configuration menu
    Copy the full SHA
    29ffb83 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    426096c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5f0892f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a69711b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    253d491 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2023

  1. feat: revamp cargo-miden to pass the unrecognized options to cargo,

    and pick up the artifacts from the cargo build to compile the MASM.
    Similar to the way cargo-component does it.
    
    Keep in mind that this cargo extension is planned to be the cargo-component
    replacement when it comes to building/publishing/etc the Wasm/Miden components.
    This should explain some implementation details. The overaching idea is
    to introduce specific to Miden subcommands (e.g. `new`) and pass the
    rest of the subcommands to cargo where its (e.g. `build`).
    greenhat committed Dec 7, 2023
    Configuration menu
    Copy the full SHA
    6e563ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    769d983 View commit details
    Browse the repository at this point in the history