Closed phlax closed 3 months ago
Sorry, I missed this comment until now!
target 'fuchsia' not declared in package 'os'
Why are rust builds targeting fuchsia here? Have you tried using supported_platform_triples
to limit the target set? As is, I see a large target_compatible_with
list in the generated BUILD files, many of which we likely don't need.
no type named 'string_view' in namespace 'std'
FWIW that looks like the namespace pollution issue fixed in #365.
Have you tried using
supported_platform_triples
i didnt - that looks like what we need - what triples should be supported ?
FWIW that looks like the namespace pollution issue fixed in https://github.com/proxy-wasm/proxy-wasm-cpp-host/pull/365.
i think this PR had that fix merged - not sure if some additional fix is required there
i tried setting supported_platform_triples
in crates_vendor
but that didnt seem to make any difference
i also tried setting generate_target_compatible_with = False
which changed the vendored files afaict but it still fails on the same issue
im thinking that the most recent versions of rules_rust
just require latest bazel but not sure
Different idea: since the issue is a missing platform, you should be able to upgrade Bazel platform rules in WORKSPACE: https://github.com/bazelbuild/platforms/releases/tag/0.0.9
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "platforms",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.9/platforms-0.0.9.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.9/platforms-0.0.9.tar.gz",
],
sha256 = "5eda539c841265031c2f82d8ae7a3a6490bd62176e0c038fc469eabf91f6149b",
)
ive been a bit distracted with releases, ill circle back to this as soon as i have some time available
Done in https://github.com/proxy-wasm/proxy-wasm-cpp-host/pull/399 -- thanks very much for starting this!
@martijneken @PiotrSikora ive had a go at this but hit a bit of a wall
if i dont update bazel >= 7 then i get
updating to 7+ i get a stack of errors like
i tried forcing it to use c++17 with
i get
vendoring the crate deps works - but trying to compile anything with them fails as above