Files
Eric F d398a6ced2 Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1)
- OpenOCPP extracted (firmware OCPP 1.6J/2.0.1)
- ShapeShifter library installed (pip install -e)
- ShapeShifter specification extracted
- EVerest extracted

TODO updated with progress
2026-06-08 00:38:27 -04:00

70 lines
1.9 KiB
Python

load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_test")
load("@everest_crate_index//:defs.bzl", "all_crate_deps")
load("@rules_rust//cargo:defs.bzl", "cargo_build_script")
cargo_build_script(
name = "build_script",
srcs = ["build.rs"],
edition="2021",
build_script_env = {
"EVEREST_CORE_ROOT": "../../../..",
},
data = [
"manifest.yaml",
"@everest-core//errors",
"@everest-core//interfaces",
"@everest-core//types",
],
deps = all_crate_deps(build = True) + [
"//lib/everest/framework/everestrs/everestrs-build",
],
)
rust_binary(
name = "RsPaymentTerminalBinary",
srcs = glob(["src/*.rs"]),
edition="2021",
proc_macro_deps = all_crate_deps(proc_macro = True),
visibility = ["//visibility:public"],
deps = all_crate_deps(normal = True) + [
":build_script",
"//lib/everest/framework/everestrs/everestrs",
"//lib/everest/framework/everestrs/everestrs:everestrs_sys",
"//lib/everest/framework/everestrs/everestrs:everestrs_bridge",
],
crate_features = ["with_lavego_error_codes"],
)
rust_test(
name = "RsPaymentTerminalTest",
edition="2021",
srcs = [],
crate_features = ["mockall", "mockall_double"],
crate = ":RsPaymentTerminalBinary",
)
binary = ":RsPaymentTerminalBinary"
manifest = ":manifest.yaml"
name = "RsPaymentTerminal"
genrule(
name = "copy_to_subdir",
srcs = [binary, manifest],
outs = [
"{}/manifest.yaml".format(name),
"{}/{}".format(name, name),
],
cmd = "mkdir -p $(RULEDIR)/{} && ".format(name) +
"cp $(location {}) $(RULEDIR)/{}/{} && ".format(binary, name, name) +
"cp $(location {}) $(RULEDIR)/{}/".format(manifest, name),
)
filegroup(
name = name,
srcs = [
":copy_to_subdir",
],
visibility = ["//visibility:public"],
)