Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ default-members = [
"src/containers",
"src/sync",
"src/elementary",
"src/pal",
"src/thread",
"src/log/score_log_fmt_macro",
"src/log/stdout_logger",
"src/testing_macros",
Expand All @@ -28,6 +30,8 @@ members = [
"src/containers",
"src/sync",
"src/elementary",
"src/pal",
"src/thread",
"src/log/score_log",
"src/log/score_log_fmt",
"src/log/score_log_fmt_macro",
Expand All @@ -44,12 +48,17 @@ license-file = "LICENSE.md"
authors = ["S-CORE Contributors"]

[workspace.dependencies]
libc = "0.2.177"

containers = { path = "src/containers" }
score_log = { path = "src/log/score_log" }
score_log_fmt = { path = "src/log/score_log_fmt" }
score_log_fmt_macro = { path = "src/log/score_log_fmt_macro" }
stdout_logger = { path = "src/log/stdout_logger" }
elementary = { path = "src/elementary" }
testing_macros = { path = "src/testing_macros" }
pal = { path = "src/pal" }
thread = { path = "src/thread" }

[workspace.lints.clippy]
std_instead_of_core = "warn"
Expand Down
35 changes: 35 additions & 0 deletions src/pal/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")

rust_library(
name = "pal",
srcs = glob(["**/*.rs"]),
edition = "2021",
visibility = ["//src:__subpackages__"],
deps = [
"//src/containers",
"//src/log/score_log",
"@score_crates//:libc",
],
)

rust_test(
name = "tests",
crate = "pal",
tags = [
"unit_tests",
"ut",
],
)
28 changes: 28 additions & 0 deletions src/pal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# *******************************************************************************
# Copyright (c) 2026 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

[package]
name = "pal"
description = "Minimal POSIX adaptation layer."
version.workspace = true
authors.workspace = true
readme.workspace = true
edition.workspace = true

[lib]
path = "lib.rs"

[dependencies]
libc.workspace = true
containers.workspace = true
score_log.workspace = true
Loading
Loading