Skip to content
Draft
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
2 changes: 1 addition & 1 deletion Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
resolver = "2"
# Split to default members without tests and examples.
# Used when executing cargo from project root.
default-members = ["src/log"]
default-members = ["src/log/mw_log_fmt"]
# Include tests and examples as a member for IDE support and Bazel builds.
members = ["src/log"]
members = ["src/log/mw_log_fmt"]


[workspace.package]
Expand All @@ -15,6 +15,7 @@ authors = ["S-CORE Contributors"]


[workspace.dependencies]
mw_log_fmt = { path = "src/log/mw_log_fmt" }


[workspace.lints.clippy]
Expand Down
24 changes: 0 additions & 24 deletions src/log/BUILD
Original file line number Diff line number Diff line change
@@ -1,24 +0,0 @@
# *******************************************************************************
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no src structs inside component modules. (use custom lib.rs path in cargo toml.)

# Copyright (c) 2025 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 = "log",
srcs = glob(["src/**/*.rs"]),
visibility = ["//visibility:public"],
)

rust_test(
name = "log_tests",
crate = ":log",
)
30 changes: 30 additions & 0 deletions src/log/mw_log_fmt/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# *******************************************************************************
# Copyright (c) 2025 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 = "mw_log_fmt",
srcs = glob(["src/**/*.rs"]),
# TODO: expose required interface through `mw_log` and make it private again.
# visibility = ["//visibility:private"],
visibility = ["//visibility:public"],
)

rust_test(
name = "tests",
crate = "mw_log_fmt",
tags = [
"unit_tests",
"ut",
],
)
8 changes: 3 additions & 5 deletions src/log/Cargo.toml → src/log/mw_log_fmt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
[package]
name = "log"
name = "mw_log_fmt"
version.workspace = true
edition.workspace = true
license-file.workspace = true
authors.workspace = true

[dependencies]
readme.workspace = true
edition.workspace = true

[lints]
workspace = true
Loading
Loading