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
1 change: 0 additions & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ copyright_checker(
"docs",
"examples",
"score",
"src",
"tests",
"//:.bazelrc",
"//:BUILD",
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ It provides a **standardized project structure**, ensuring best practices for:
| File/Folder | Description |
| ----------------------------------- | ------------------------------------------------- |
| `README.md` | Short description & build instructions |
| `src/` | Source files for the module |
| `score/` | Source files for the module |
| `tests/` | Unit tests (UT) and integration tests (IT) |
| `examples/` | Example files used for guidance |
| `docs/` | Documentation (Doxygen for C++ / mdBook for Rust) |
Expand Down Expand Up @@ -47,15 +47,15 @@ cd YOUR_PROJECT
To build all targets of the module the following command can be used:

```sh
bazel build //src/...
bazel build //score/...
```

This command will instruct Bazel to build all targets that are under Bazel
package `src/`. The ideal solution is to provide single target that builds
package `score/`. The ideal solution is to provide single target that builds
artifacts, for example:

```sh
bazel build //src/<module_name>:release_artifacts
bazel build //score/<module_name>:release_artifacts
```

where `:release_artifacts` is filegroup target that collects all release
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Project Layout

The module template includes the following top-level structure:

- `src/`: Main C++/Rust sources
- `score/`: Main C++/Rust sources
- `tests/`: Unit and integration tests
- `examples/`: Usage examples
- `docs/`: Documentation using `docs-as-code`
Expand All @@ -57,7 +57,7 @@ To build the module:

.. code-block:: bash

bazel build //src/...
bazel build //score/...

To run tests:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ cc_library(
)

rust_library(
name = "mw_log_subscriber",
name = "mw_logger",
srcs = glob(["src/**/*.rs"]),
crate_name = "mw_log_subscriber",
crate_name = "mw_logger",
edition = "2021",
visibility = ["//visibility:public"],
deps = [
Expand All @@ -50,7 +50,7 @@ rust_binary(
],
visibility = ["//visibility:public"],
deps = [
":mw_log_subscriber",
":mw_logger",
"@score_baselibs//score/mw/log/rust:log",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use std::path::PathBuf;

use log::{debug, error, info, trace, warn};
use mw_log_subscriber::MwLoggerBuilder;
use mw_logger::MwLoggerBuilder;

fn main() {
//Setup for example using config file
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_rust_analyzer_support.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -e

# Manual targets are not take into account, must be set explicitly
bazel run @rules_rust//tools/rust_analyzer:gen_rust_project -- "@//examples/..." "@//src/..." "@//tests/..."
bazel run @rules_rust//tools/rust_analyzer:gen_rust_project -- "@//examples/..." "@//score/..." "@//tests/..."
Empty file removed src/BUILD
Empty file.
Empty file removed src/cpp/.gitkeep
Empty file.
Loading