-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add files to expose the currently used external types. (#1303)
To get ready for release candidate, we should keep track of these as it affects how stable we can consider being. Add check to CI.
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# This is used with cargo-check-external-types to reduce the surface area of downstream crates from | ||
# the public API. Ideally this can have a few exceptions as possible. | ||
allowed_external_types = [ | ||
"opentelemetry::*", | ||
"async_channel::Receiver", | ||
"async_channel::Sender", | ||
"async_std::stream::interval::Interval", | ||
"futures_channel::oneshot::Sender", # TODO: This is a pre-1.0 crate, we can't easily stabilize with this in the public API | ||
"futures_core::future::BoxFuture", # TODO: This is a pre-1.0 crate, we can't easily stabilize with this in the public API | ||
"futures_core::stream::Stream", # TODO: This is a pre-1.0 crate, we can't easily stabilize with this in the public API | ||
"opentelemetry_http::HttpClient", # TODO: We probably shouldn't be depending on another SDK not in the API from the SDK. | ||
"tokio_stream::wrappers::interval::IntervalStream", # TODO: This is a pre-1.0 crate, we can't easily stabilize with this in the public API | ||
"tokio_stream::wrappers::mpsc_bounded::ReceiverStream", # TODO: This is a pre-1.0 crate, we can't easily stabilize with this in the public API | ||
"tokio::sync::mpsc::bounded::Sender", | ||
"tokio::time::sleep::Sleep", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright The OpenTelemetry Authors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# This is used with cargo-check-external-types to reduce the surface area of downstream crates from | ||
# the public API. Ideally this can have a few exceptions as possible. | ||
allowed_external_types = [ | ||
"indexmap::map::core::Entry", | ||
"indexmap::map::iter::Drain", | ||
"indexmap::map::iter::IterMut", | ||
"indexmap::map::iter::Iter", | ||
"indexmap::map::iter::IntoIter", | ||
"indexmap::map::iter::IntoKeys", | ||
"indexmap::map::iter::Keys", | ||
"indexmap::map::iter::IntoValues", | ||
"indexmap::map::iter::Values", | ||
"indexmap::map::iter::ValuesMut", | ||
"equivalent::Equivalent", | ||
"futures_sink::Sink", # TODO: This is a pre-1.0 crate, we can't easily stabilize with this in the public API | ||
"futures_core::stream::Stream", # TODO: This is a pre-1.0 crate, we can't easily stabilize with this in the public API | ||
] |