Skip to content

Commit

Permalink
fbcode/common/ [A] [B]
Browse files Browse the repository at this point in the history
Reviewed By: zertosh

Differential Revision: D69146079

fbshipit-source-id: 2708c393b1e5df785a8a11c867a83875e97a7c26
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Feb 7, 2025
1 parent 60363a7 commit 1a404b2
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 3 deletions.
1 change: 1 addition & 0 deletions shed/justknobs_stub/cached_config_thrift_struct/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ codegen_includer_proc_macro = { version = "0.1.0", path = "../../codegen_include
fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
futures = { version = "0.3.30", features = ["async-await", "compat"] }
ref-cast = "1.0.18"
rust = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
serde = { version = "1.0.185", features = ["derive", "rc"] }
serde_derive = "1.0.185"
thiserror = "2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ codegen_includer_proc_macro = { version = "0.1.0", path = "../../../codegen_incl
fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
futures = { version = "0.3.30", features = ["async-await", "compat"] }
just_knobs_struct__types = { package = "just_knobs_struct", version = "0.1.0", path = ".." }
rust = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
rust_clients = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
tracing = { version = "0.1.41", features = ["attributes", "valuable"] }

[build-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use thrift_compiler::Config;
use thrift_compiler::GenContext;
const CRATEMAP: &str = "\
common/rust/shed/justknobs_stub/cached_config_thrift_struct/just_knobs.thrift crate //common/rust/shed/justknobs_stub/cached_config_thrift_struct:just_knobs_struct-rust
thrift/annotation/rust.thrift rust //thrift/annotation:rust-rust
thrift/annotation/scope.thrift rust->scope //thrift/annotation:scope-rust
";
#[rustfmt::skip]
fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
* of this source tree.
*/

include "thrift/annotation/rust.thrift"

@rust.Exhaustive
struct JustKnobs {
1: JustKnobInts ints;
2: JustKnobBools bools;
} (rust.exhaustive)
}

typedef map<string, bool> (rust.type = "HashMap") JustKnobBools
typedef map<string, i64> (rust.type = "HashMap") JustKnobInts
@rust.Type{name = "HashMap"}
typedef map<string, bool> JustKnobBools
@rust.Type{name = "HashMap"}
typedef map<string, i64> JustKnobInts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbth
futures = { version = "0.3.30", features = ["async-await", "compat"] }
just_knobs_struct__clients = { package = "just_knobs_struct_clients", version = "0.1.0", path = "../clients" }
just_knobs_struct__types = { package = "just_knobs_struct", version = "0.1.0", path = ".." }
rust = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
rust_clients = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
rust_mocks = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
tracing = { version = "0.1.41", features = ["attributes", "valuable"] }

[build-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use thrift_compiler::Config;
use thrift_compiler::GenContext;
const CRATEMAP: &str = "\
common/rust/shed/justknobs_stub/cached_config_thrift_struct/just_knobs.thrift crate //common/rust/shed/justknobs_stub/cached_config_thrift_struct:just_knobs_struct-rust
thrift/annotation/rust.thrift rust //thrift/annotation:rust-rust
thrift/annotation/scope.thrift rust->scope //thrift/annotation:scope-rust
";
#[rustfmt::skip]
fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ codegen_includer_proc_macro = { version = "0.1.0", path = "../../../codegen_incl
fbthrift = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
futures = { version = "0.3.30", features = ["async-await", "compat"] }
just_knobs_struct__types = { package = "just_knobs_struct", version = "0.1.0", path = ".." }
rust = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
rust_services = { version = "0.0.1+unstable", git = "https://github.com/facebook/fbthrift.git", branch = "main" }
tracing = { version = "0.1.41", features = ["attributes", "valuable"] }

[build-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use thrift_compiler::Config;
use thrift_compiler::GenContext;
const CRATEMAP: &str = "\
common/rust/shed/justknobs_stub/cached_config_thrift_struct/just_knobs.thrift crate //common/rust/shed/justknobs_stub/cached_config_thrift_struct:just_knobs_struct-rust
thrift/annotation/rust.thrift rust //thrift/annotation:rust-rust
thrift/annotation/scope.thrift rust->scope //thrift/annotation:scope-rust
";
#[rustfmt::skip]
fn main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ use thrift_compiler::Config;
use thrift_compiler::GenContext;
const CRATEMAP: &str = "\
common/rust/shed/justknobs_stub/cached_config_thrift_struct/just_knobs.thrift crate //common/rust/shed/justknobs_stub/cached_config_thrift_struct:just_knobs_struct-rust
thrift/annotation/rust.thrift rust //thrift/annotation:rust-rust
thrift/annotation/scope.thrift rust->scope //thrift/annotation:scope-rust
";
#[rustfmt::skip]
fn main() {
Expand Down

0 comments on commit 1a404b2

Please sign in to comment.