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

Rust toolchain for ain #7

Open
wafflespeanut opened this issue Apr 22, 2022 · 0 comments
Open

Rust toolchain for ain #7

wafflespeanut opened this issue Apr 22, 2022 · 0 comments
Assignees

Comments

@wafflespeanut
Copy link
Contributor

We have a WIP integration of wasm, grpc and testing framework for defid (all of which are in Rust and hence libain-rs). In order to be able to develop and release with ease, we need to integrate Rust toolchain into defid, which involves fiddling around the depends system. We approach this in two phases:

  1. To quickly start developing, we hide the libain-rs integration under certain feature flags. When those flags are set, depends will expect Rust toolchain to exist locally. There should also be a possibility to specify local version of libain-rs, which will then be used as an override instead of pulling this repository.
  2. As we mature, the flags will be flipped to use libain-rs by default. At this point, it wouldn't make sense to enforce having rustc and cargo as a prerequisite in everyone's machine. Now, we could build artifacts for multiple targets and host them in CI or some public bucket, which can then be downloaded by depends and link them directly to defid builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants