-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
57 lines (49 loc) · 1.6 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[package]
name = "sentry-kafka-schemas"
authors = ["Sentry <[email protected]>"]
description = "Kafka topics and schemas for Sentry"
repository = "https://github.com/getsentry/sentry-kafka-schemas"
license-file = "./LICENSE.md"
version = "0.1.126"
edition = "2021"
build = "rust/build.rs"
include = [
"/examples/**",
"/rust/*.rs",
"/schemas/**",
"/topics/**",
"/Cargo.toml",
"/LICENSE.md",
"/README.md",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
path = "rust/lib.rs"
[[bin]]
# register build.rs as binary so people can view generated code directly as well
# https://stackoverflow.com/a/53728256/1544347
name = "generate-schema-types"
path = "rust/build.rs"
required-features = ["type_generation"]
[features]
default = ["type_generation"]
type_generation = ["prettyplease", "schemars", "syn", "typify"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
jsonschema = { version = "0.18.1", default-features = false }
thiserror = "1.0.49"
# redeclare all build-dependencies here so that the build.rs can be used
# standalone to view types
prettyplease = { version = "0.2.4", optional = true }
schemars = { version = "0.8.0", optional = true }
syn = { version = "2.0.11", optional = true }
typify = { version = "0.0.16", optional = true }
url = "2.5.4"
[build-dependencies]
prettyplease = { version = "0.2.4", optional = true }
schemars = { version = "0.8.0", optional = true }
serde_json = "1.0"
syn = { version = "2.0.11", optional = true }
typify = { version = "0.0.16", optional = true }