-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
105 lines (87 loc) · 3.04 KB
/
Copy pathCargo.toml
File metadata and controls
105 lines (87 loc) · 3.04 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[package]
name = "fossapi"
version = "0.3.0"
edition = "2021"
description = "Rust client library for the FOSSA REST API"
license = "MIT"
repository = "https://github.com/fossas/fossapi"
keywords = ["fossa", "api", "client", "sbom", "dependencies"]
categories = ["api-bindings", "development-tools"]
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
# HTTP client. rustls (not native OpenSSL) so the x86_64-unknown-linux-musl
# release build doesn't fail trying to link openssl-sys when cross-compiling.
reqwest = { version = "0.12", default-features = false, features = ["json", "gzip", "brotli", "deflate", "charset", "http2", "rustls-tls"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_with = { version = "3", features = ["base64"] }
schemars = "0.8"
# MCP server
rmcp = { version = "0.1", features = ["transport-io"] }
# URL handling
url = { version = "2", features = ["serde"] }
urlencoding = "2"
# Error handling
thiserror = "1"
# Async traits
async-trait = "0.1"
# Tracing/logging
tracing = "0.1"
tracing-subscriber = "0.3"
# CLI
clap = { version = "4", features = ["derive", "env"] }
tabled = "0.17"
# Time handling
chrono = { version = "0.4", features = ["serde"] }
# Mock server dependencies (feature-gated, for testing)
axum = { version = "0.7", optional = true }
tower = { version = "0.5", optional = true }
[features]
default = []
test-server = ["dep:axum", "dep:tower"]
[dev-dependencies]
tokio-test = "0.4"
tracing-subscriber = "0.3"
serde_qs = "0.13"
wiremock = "0.6"
[[bin]]
name = "fossapi"
path = "src/bin/fossapi.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
# Config for 'dist'
[workspace.metadata.dist]
# The preferred dist version to use in CI (Cargo.toml SemVer syntax)
cargo-dist-version = "0.27.0"
# CI backends to support
ci = "github"
# Target platforms to build apps for (Rust target-triple syntax)
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"]
# The installers to generate for each app
installers = ["shell", "powershell"]
# Which actions to run on pull requests
pr-run-mode = "plan"
# Whether to install an updater program
install-updater = false
# Path that installers should place binaries in
install-path = "CARGO_HOME"
# Pin CI runners to images GitHub still hosts. dist 0.27 defaults to
# ubuntu-20.04 / windows-2019, both retired, so jobs requesting them queue
# until the 24h timeout and the PR check sits "pending" forever.
# Both apple-darwin targets build on Apple Silicon (macos-14): GitHub no longer
# allocates Intel macOS runners (macos-13 deprecated), so the x86_64 binary is
# cross-compiled on the arm runner.
[workspace.metadata.dist.github-custom-runners]
global = "ubuntu-22.04"
aarch64-apple-darwin = "macos-14"
x86_64-apple-darwin = "macos-14"
x86_64-unknown-linux-gnu = "ubuntu-22.04"
x86_64-unknown-linux-musl = "ubuntu-22.04"
x86_64-pc-windows-msvc = "windows-2022"
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"