serverless-fn 0.1.0

A Rust library for simplifying serverless function development and invocation
Documentation
[package]
name = "serverless-fn"
version = "0.1.0"
edition = "2024"
description = "A Rust library for simplifying serverless function development and invocation"
license = "MIT"
repository = "https://github.com/example/serverless-fn"
keywords = ["serverless", "async", "rust"]
categories = ["asynchronous", "web-programming"]

[workspace]
members = ["serverless-fn-macro"]

[lib]
name = "serverless_fn"
path = "src/lib.rs"

[dependencies]
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
postcard = { version = "1.1", features = ["alloc"] }
erased-serde = "0.4"

# Async runtime
tokio = { version = "1.50", features = ["full"] }
futures = "0.3"
async-trait = "0.1"

# Error handling
thiserror = "2.0"
anyhow = "1.0"

# HTTP and networking
reqwest = { version = "0.13", features = ["json"] }
axum = "0.8"
http = "1.4"
hyper = { version = "1.8", features = ["full"] }
tower = "0.4"
bytes = "1.11"

# Logging and tracing
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

# Utilities
uuid = { version = "1.22", features = ["v4"] }
inventory = "0.3"

# Proc macro dependencies (always needed for macro expansion)
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "2.0", features = ["full"] }

# Local crates
serverless-fn-macro = { version = "0.1.0", path = "./serverless-fn-macro" }

[features]
default = ["remote_call", "json_serialization"]
remote_call = []
local_call = []
json_serialization = []
postcard_serialization = []
mock_server = []
telemetry = []

[profile.release]
lto = true
codegen-units = 1

[profile.dev]
debug = true