-
Notifications
You must be signed in to change notification settings - Fork 1.6k
pvf: use test-utils feature to export test only #7538
Changes from all commits
cb9d3f2
b72c655
db467ff
49067f9
05f8c9a
e6cca27
f8e10ce
735344a
41190ef
6c46d31
ca94de7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,11 +97,11 @@ mod prepare; | |
mod priority; | ||
mod worker_intf; | ||
|
||
#[doc(hidden)] | ||
#[cfg(feature = "test-utils")] | ||
pub mod testing; | ||
|
||
// Used by `decl_puppet_worker_main!`. | ||
#[doc(hidden)] | ||
#[cfg(feature = "test-utils")] | ||
pub use sp_tracing; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the dependency itself become optional too? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, in this case, the dependency will only be enabled if the test-utils feature is being used. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It will be re-exported with the feature, however it's always there in toml file: sp-tracing = { git = "https://github.com/paritytech/substrate", branch = "master" } My question is could it be made optional There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for the misunderstanding. Done. |
||
|
||
pub use error::{InvalidCandidate, ValidationError}; | ||
|
@@ -118,7 +118,9 @@ pub use polkadot_node_core_pvf_common::{ | |
}; | ||
|
||
// Re-export worker entrypoints. | ||
#[cfg(feature = "test-utils")] | ||
pub use polkadot_node_core_pvf_execute_worker::worker_entrypoint as execute_worker_entrypoint; | ||
#[cfg(feature = "test-utils")] | ||
pub use polkadot_node_core_pvf_prepare_worker::worker_entrypoint as prepare_worker_entrypoint; | ||
|
||
/// The log target for this crate. | ||
|
Uh oh!
There was an error while loading. Please reload this page.