refactor(libdd-remote-config)!: hide Target inner properties so they are not leaked#2182
refactor(libdd-remote-config)!: hide Target inner properties so they are not leaked#2182hoolioh wants to merge 2 commits into
Conversation
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: fa0a7cd | Docs | Datadog PR Page | Give us feedback! |
Clippy Allow Annotation ReportComparing clippy allow annotations between branches:
Summary by Rule
Annotation Counts by File
Annotation Stats by Crate
About This ReportThis report tracks Clippy allow annotations for specific rules, showing how they've changed in this PR. Decreasing the number of these annotations generally improves code quality. |
📚 Documentation Check Results📦
|
🔒 Cargo Deny Results📦
|
443c3a9 to
513ee52
Compare
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-unknown-linux-gnu
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 513ee52576
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
|
||
| pub use libdd_common::{tag::Tag, Endpoint}; | ||
|
|
||
| use serde::{Deserialize, Serialize}; |
There was a problem hiding this comment.
Restore the Endpoint re-export
When consumers construct the public fetch::ConfigInvariants, its endpoint field still has type libdd_common::Endpoint, but this hunk removes the only libdd_remote_config::Endpoint re-export. In downstream crates that only depend on libdd-remote-config, this forces adding a direct libdd-common dependency pinned to the exact same version and can reintroduce the duplicate-crate problem this change is trying to avoid; keep re-exporting Endpoint while dropping only Tag.
Useful? React with 👍 / 👎.
f09c1ad to
fa0a7cd
Compare
What does this PR do?
Hide internal implementation so types are not leaked to the consumers
Motivation
Avoid symol/crate duplication on downstream projects.