Cargo.lock is essentially identical to subprojects/*.wrap files. When a (sub)project has a Cargo.lock file this allows automatic fallback for its cargo dependencies.pull/13050/head
parent
c0de2e1264
commit
9b8378985d
11 changed files with 147 additions and 24 deletions
@ -0,0 +1,6 @@ |
||||
## Added support `Cargo.lock` file |
||||
|
||||
When a (sub)project has a `Cargo.lock` file at its root, it is loaded to provide |
||||
an automatic fallback for dependencies it defines, fetching code from |
||||
https://crates.io or git. This is identical as providing `subprojects/*.wrap`, |
||||
see [cargo wraps](Wrap-dependency-system-manual.md#cargo-wraps) dependency naming convention. |
@ -1,5 +1,6 @@ |
||||
__all__ = [ |
||||
'interpret' |
||||
'interpret', |
||||
'load_wraps', |
||||
] |
||||
|
||||
from .interpreter import interpret |
||||
from .interpreter import interpret, load_wraps |
||||
|
@ -0,0 +1,7 @@ |
||||
version = 3 |
||||
|
||||
[[package]] |
||||
name = "bar" |
||||
version = "0.1" |
||||
source = "registry+https://github.com/rust-lang/crates.io-index" |
||||
checksum = "cc2f34e570dcd5f9fe32e6863ee16ee73a356d3b77bce0d8c78501b8bc81a860" |
@ -0,0 +1,3 @@ |
||||
project('cargo lock') |
||||
|
||||
dependency('bar-0.1-rs') |
Binary file not shown.
Loading…
Reference in new issue