Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,36 @@ categories = ["authentication", "web-programming::http-server"]
keywords = ["actix-web", "middleware", "authentication", "jwt", "keycloak"]
license = "MIT"

[[example]]
name = "custom_claims"
path = "examples/custom_claims.rs"
required-features = ["paperclip_compat"]
Comment on lines +14 to +17
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required because the paperclip_compat is not needed for this example


[[example]]
name = "paperclip"
path = "examples/paperclip.rs"
required-features = ["paperclip_compat"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool but we should update examples/README.md accordingly


[[example]]
name = "simple"
path = "examples/simple.rs"
required-features = ["paperclip_compat"]
Comment on lines +24 to +27
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required because the paperclip_compat is not needed for this example


[dependencies]
actix-web = { version = "4.4.0", default-features = false }
chrono = { version = "0.4.31", features = ["serde"] }
futures-util = { version = "0.3.29", default-features = false, features = ["std"] }
log = "0.4.20"
jsonwebtoken = "9.2.0"
serde = { version = "1.0.193", features = ["derive"] }
actix-web = { version = "4.9.0", default-features = false }
chrono = { version = "0.4.38", features = ["serde"] }
futures-util = { version = "0.3.30", default-features = false, features = ["std"] }
log = "0.4.22"
jsonwebtoken = "9.3.0"
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.108"
uuid = { version = "1.6.1", features = ["serde"] }
paperclip = { version = "0.8.2", default-features = false, features = ["actix4"], optional = true }
uuid = { version = "1.10.0", features = ["serde"] }
paperclip = { version = "0.9.1", default-features = false, features = ["actix4", "paperclip-actix"], optional = true }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you do not need to explicitly add the paperclip-actix feature as it is enabled by the actix4 one


[dev-dependencies]
actix-web = { version = "4.4.0", default-features = false, features = ["macros"] }
env_logger = "0.10.1"
uuid = { version = "1.6.1", features = ["serde", "v4"] }
env_logger = "0.11.5"
uuid = { version = "1.10.0", features = ["serde", "v4"] }

[features]
default = []
Expand Down
Loading