]> Repositorios git - scryer-prolog.git/commitdiff
add a feature for things that are simple to cross-compile
authorSkgland <[email protected]>
Mon, 27 Apr 2026 19:33:08 +0000 (21:33 +0200)
committerBennet Bleßmann <[email protected]>
Sun, 24 May 2026 08:39:20 +0000 (10:39 +0200)
.github/workflows/ci.yml
Cargo.toml

index 8c118e539a91d39b81d04a5a78a9141e6de72d43..ff0993a2299d9dbac0bdebebda6ff34552d8e646 100644 (file)
@@ -64,8 +64,8 @@ jobs:
           - { os: ubuntu-22.04,   rust-version: "${{ needs.read-msrv.outputs.msrv }}" ,  target: 'x86_64-unknown-linux-gnu' }
           - { os: ubuntu-22.04,   rust-version: beta,    target: 'x86_64-unknown-linux-gnu' }
           - { os: ubuntu-22.04,   rust-version: nightly, target: 'x86_64-unknown-linux-gnu', miri: true, components: "miri" } 
-          # run miri for a big-endian target, without features that require openssl i.e. without http, tls
-          - { os: ubuntu-22.04,   rust-version: nightly, target: 's390x-unknown-linux-gnu', miri: true, components: "miri", args: '--no-default-features --features=repl,hostname,crypto-full,ffi', test-args: '--no-run --no-default-features --features=repl,hostname,crypto-full,ffi' } 
+          # run miri for a big-endian target, with all features that are simple to get cross-compiled
+          - { os: ubuntu-22.04,   rust-version: nightly, target: 's390x-unknown-linux-gnu', miri: true, components: "miri", args: '--no-default-features --features=all-simple-cross', test-args: '--no-run --no-default-features --features=all-simple-cross' } 
     defaults:
       run:
         shell: bash
index 0494a6791efe171a7e9bcfc866165e3ae68bd5f5..948444a89abedd723238c8dc27fbe623b6eb644e 100644 (file)
@@ -18,6 +18,9 @@ crate-type = ["cdylib", "rlib"]
 
 [features]
 default = ["ffi", "repl", "hostname", "tls", "http", "crypto-full"]
+# enables all features that are simple to get working for cross-compliation
+# currently all but tls, http as those depend on openssl
+all-simple-cross = ["ffi", "repl", "hostname", "crypto-full"]
 ffi = ["dep:libffi"]
 repl = ["dep:crossterm", "dep:ctrlc", "dep:rustyline"]
 hostname = ["dep:hostname"]