Skip to content

Commit

Permalink
[core] Move modules between core and tcp-api-server
Browse files Browse the repository at this point in the history
Move out of nazmulidris/rust-scratch/tcp-api-server repo, into core:

- Add other standalone modules (Rust files) from tcp-api-server
  crate into the core crate:
  - kv.rs
  - miette_setup_global_report_handler.rs

Move out of core, into nazmulidris/rust-scratch/tcp-api-server repo:

- Move jaeger_setup.rs and its deps out of core. They were only used
  by tcp-api-server repo anyway.

Enhancements to logging in core:

- Refine tracing_logging to support both thread local and global
  tracing subscribers.
  - Include all the deps
  - And the binary (under test) for use with the assert_cmd crate
  • Loading branch information
nazmulidris committed Oct 19, 2024
1 parent 2ca9268 commit 7db052a
Show file tree
Hide file tree
Showing 15 changed files with 868 additions and 653 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
"asciicast",
"attribs",
"Bderivebuilder",
"Bincode",
"BITALIC",
"bitflags",
"Blackbox",
"BOOKM",
"boop",
"CBOR",
"chrono",
"cicd",
"CLICOLOR",
Expand Down
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,14 @@ reflect how the functionality is used in the real world.
place is because it was easier to develop them there, but since then, lots of other
consumers of this functionality have emerged, including crates that are created by
"3rd party developers" (people not R3BL and not part of `r3bl-open-core` repo).
- Move the `kv.rs` module into `storage` from the
`nazmulidris/rust-scratch/tcp-api-server` repo. This provides an in-memory /
in-process key value store that is built on top of `sled`. This eliminates the need to
use files to save / load data.
- Move the `miette_setup_global_report_handler.rs` from the
`nazmulidris/rust-scratch/tcp-api-server` repo. This allows customization of the
miette global report handler at the process level. Useful for apps that need to
override the default report handler formatting.

### v0.9.16 (2024-09-12)

Expand Down Expand Up @@ -914,8 +922,8 @@ modules in this crate.

- Deleted:
- Move the Jaeger tracing module to the `tcp-api-server` crate in the
`https://github.comnazmulidris/rust-scratch/` repo. This wasn't really used
anywhere else.
`https://github.comnazmulidris/rust-scratch/` repo. This wasn't really used anywhere
else. Also remove all the OpenTelemetry related dependencies from this crate.
- Move the tracing module into the `core` folder (`r3bl_rs_utils_core` crate) in the
mono repo.

Expand Down
Loading

0 comments on commit 7db052a

Please sign in to comment.