-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Decouple scuba_sample in such a way that the sample struct definition is a separate library. Required to minimize dependencies for the following commits. Reviewed By: mitrandir77 Differential Revision: D66096858 fbshipit-source-id: 743a4f0c48095dc28a5f8775d10d968b6103452b
- Loading branch information
1 parent
df4559c
commit 63c543b
Showing
13 changed files
with
121 additions
and
11 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
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 |
---|---|---|
|
@@ -5,13 +5,12 @@ name = "scuba_sample" | |
version = "0.1.0" | ||
authors = ["Facebook <[email protected]>"] | ||
edition = "2021" | ||
description = "Helps build scuba samples" | ||
description = "Provides Scuba sample type and sampling" | ||
readme = "../../README.md" | ||
repository = "https://github.com/facebookexperimental/rust-shed" | ||
license = "MIT OR Apache-2.0" | ||
|
||
[dependencies] | ||
fbinit = { version = "0.2.0", path = "../fbinit" } | ||
rand = { version = "0.8", features = ["small_rng"] } | ||
scuba_sample_derive = { version = "0.1.0", path = "derive" } | ||
serde = { version = "1.0.185", features = ["derive", "rc"] } | ||
|
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,17 @@ | ||
# @generated by autocargo from //common/rust/shed/scuba_sample:scuba_sample_builder | ||
|
||
[package] | ||
name = "scuba_sample_builder" | ||
version = "0.1.0" | ||
authors = ["Facebook <[email protected]>"] | ||
edition = "2021" | ||
description = "Helps build scuba samples" | ||
readme = "../../../README.md" | ||
repository = "https://github.com/facebookexperimental/rust-shed" | ||
license = "MIT OR Apache-2.0" | ||
|
||
[dependencies] | ||
fbinit = { version = "0.2.0", path = "../../fbinit" } | ||
rand = { version = "0.8", features = ["small_rng"] } | ||
scuba_sample = { version = "0.1.0", path = ".." } | ||
serde_json = { version = "1.0.132", features = ["float_roundtrip", "unbounded_depth"] } |
File renamed without changes.
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 (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under both the MIT license found in the | ||
* LICENSE-MIT file in the root directory of this source tree and the Apache | ||
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
* of this source tree. | ||
*/ | ||
|
||
#![deny(warnings, missing_docs, clippy::all, rustdoc::broken_intra_doc_links)] | ||
#![allow(elided_lifetimes_in_paths)] | ||
|
||
//! Defines [builder::ScubaSampleBuilder] helper structure to build a sample for Scuba. | ||
pub mod builder; | ||
|
||
use scuba_sample::*; | ||
|
||
pub use crate::builder::ScubaSampleBuilder; |
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,15 @@ | ||
# @generated by autocargo from //common/rust/shed/scuba_sample:scuba_sample_client | ||
|
||
[package] | ||
name = "scuba_sample_client" | ||
version = "0.1.0" | ||
authors = ["Facebook <[email protected]>"] | ||
edition = "2021" | ||
description = "Provides scuba sample client stub" | ||
readme = "../../../README.md" | ||
repository = "https://github.com/facebookexperimental/rust-shed" | ||
license = "MIT OR Apache-2.0" | ||
|
||
[dependencies] | ||
fbinit = { version = "0.2.0", path = "../../fbinit" } | ||
scuba_sample = { version = "0.1.0", path = ".." } |
File renamed without changes.
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 (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under both the MIT license found in the | ||
* LICENSE-MIT file in the root directory of this source tree and the Apache | ||
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory | ||
* of this source tree. | ||
*/ | ||
|
||
#![deny(warnings, missing_docs, clippy::all, rustdoc::broken_intra_doc_links)] | ||
#![allow(elided_lifetimes_in_paths)] | ||
|
||
//! Defines [client::ScubaClient] helper structure. | ||
pub mod client; | ||
|
||
use scuba_sample::*; | ||
|
||
pub use crate::client::ScubaClient; |
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
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