2023-03-31 20:51:52 +03:00
|
|
|
distributable:
|
2024-05-02 21:15:24 +03:00
|
|
|
url: https://github.com/FuelLabs/sway/archive/refs/tags/{{version.tag}}.tar.gz
|
2023-03-31 20:51:52 +03:00
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: FuelLabs/sway
|
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/forc
|
|
|
|
|
|
|
|
dependencies:
|
2024-02-23 08:57:21 +03:00
|
|
|
zlib.net: ^1
|
|
|
|
openssl.org: ^1.1
|
2023-03-31 20:51:52 +03:00
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
2024-05-02 21:15:24 +03:00
|
|
|
rust-lang.org: ^1.78 # stdsimd changes
|
2024-02-23 08:57:21 +03:00
|
|
|
rust-lang.org/cargo: ^0
|
|
|
|
# needed to build openssl module
|
|
|
|
perl.org: '*'
|
|
|
|
gnu.org/make: '*'
|
2024-05-02 21:15:24 +03:00
|
|
|
script: cargo install --locked --path forc --root {{prefix}}
|
2023-03-31 20:51:52 +03:00
|
|
|
|
|
|
|
test:
|
2024-02-23 08:57:21 +03:00
|
|
|
script:
|
2024-05-02 21:15:24 +03:00
|
|
|
- forc new pkgx_test
|
|
|
|
- cd pkgx_test
|
2024-02-23 08:57:21 +03:00
|
|
|
- cat $FIXTURE >src/main.sw
|
|
|
|
- forc test
|
2023-03-31 20:51:52 +03:00
|
|
|
fixture: |
|
|
|
|
script;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_meaning_of_life() {
|
|
|
|
assert(6 * 7 == 42);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
()
|
|
|
|
}
|