You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to have a way for projects to install Sway project dependencies, so that Sway contract devs can share and re-use code. While eventually a central repository of published authenticated packages will be nice, in the meantime installing packages from simple GitHub repo URLs will suffice.
Proposal
A field in the manifest file already exists for dependencies, however only handles local dependencies.
Check for versions of remote git dependencies by tag (if dep on a particular tag) and hash (if dep on default branch) and update the locally-installed dependencies according to semver rules. Investigate how differences in hash play with updating.
I got most of that configuration manifest stuff from the Cargo repository itself. If desired, we could just continue to use that code to do this feature.
Problem
We would like to have a way for projects to install Sway project dependencies, so that Sway contract devs can share and re-use code. While eventually a central repository of published authenticated packages will be nice, in the meantime installing packages from simple GitHub repo URLs will suffice.
Proposal
A field in the manifest file already exists for dependencies, however only handles local dependencies.
sway/forc/src/utils/manifest.rs
Lines 28 to 46 in 8b36344
These dependencies are compiled when running
forc build
.sway/forc/src/ops/forc_build.rs
Lines 68 to 77 in 9569c55
forc build
must be modified to additionally:~/.forc
directory (we only support Linux, and by coincidence macOS if it happens to work) or following Let Cargo put data into platform-specific directories rust-lang/rfcs#1615.--offline
flag: https://doc.rust-lang.org/cargo/commands/cargo-build.html#manifest-options.Refs
Tracked by #27
The text was updated successfully, but these errors were encountered: