Skip to content

Changelog and roadmap ​

Roadmap ​

  • Stabilize and publish the CLI under 0.7.0.

  • Add NATS JetStream support

  • Add support for socketioxide adapters

  • Add testing suite for each application type

  • Add dynamic dispatch support to the dependency injection system

0.7 ​

Added ​

  • Plugin system: reusable integrations registered in the same container as modules. See the plugins guide

  • Optional configuration: a section may be absent and its default value is used. See optional configuration

  • Scalar UI: a second interface for the API documentation, an alternative to Swagger. See OpenAPI

Breaking changes ​

  • gRPC: the service key of the #[controller] attribute becomes server.

    rust
    // Before
    #[controller(kind = Controller::Grpc, service = UserGrpcServiceServer)]
    
    // After
    #[controller(kind = Controller::Grpc, server = UserGrpcServiceServer)]

    Why?

    The value the key takes is the server Tonic generates, not the service from the contract. The previous name was easily confused with the trait the controller implements.

    See gRPC controllers

  • Layers: the sword-layers crate is gone and each engine ships its own as features of sword.

    toml
    # Before
    sword-layers = { version = "0.6", features = ["compression"] }
    
    # After
    sword = { version = "0.7", features = ["web", "web-compression"] }

    Why?

    The sword-layers crate forced a single stack shared by every engine and pulled axum and tower into sword-core. Now each engine keeps its own layers and the optional ones become features of the application type, so only what you need is compiled.

    See Tower layers

Fixed ​

  • Static files: the server keeps its own 404.html.

0.6 ​

Added ​

  • NATS events: transport with queue groups, authentication and TLS. See NATS events

  • gRPC clients: clients declared in the TOML and injected into components. See gRPC clients

  • Configuration validation: sections are checked at startup and errors are reported as diagnostics. See validation

Breaking changes ​

  • Validation features: validation-validator splits into web-validator and socketio-validator.

    toml
    # Before
    sword = { version = "0.5", features = ["validation-validator"] }
    
    # After
    sword = { version = "0.6", features = ["web", "web-validator"] }

    Why?

    The previous feature enabled both the web and the Socket.IO validators at once. Splitting them gives each engine its own.

    See application types

Changed ​

  • Startup: layer and engine registration logs move to debug level.