diff --git a/Cargo.toml b/Cargo.toml index 54f482c9c1282fb54302302de9f8191eea8f862d..a4ddda15eaa2ede027e56f1dd99ca24715ecebac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "coap" -version = "0.4.0" +version = "0.5.0" description = "A CoAP library" readme = "README.md" documentation = "http://covertness.github.io/coap-rs/coap/index.html" diff --git a/README.md b/README.md index f0aa3c8a517d96afc04e9fab5e81ff557c66db3f..92c24343f91abf68348927276c89c49c237c0a93 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ First add this to your `Cargo.toml`: ```toml [dependencies] -coap = "0.4" +coap = "0.5" ``` Then, add this to your crate root: diff --git a/src/lib.rs b/src/lib.rs index 1c1c7322e9a6b877ddf088a996463894c9632f41..b3e8969851a2fad6eb4341e3ab3be9acd7744d6b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ //! //! ```toml //! [dependencies] -//! coap = "0.3" +//! coap = "0.5" //! ``` //! //! Then, add this to your crate root: @@ -31,7 +31,9 @@ //! fn request_handler(request: CoAPRequest) -> Option<CoAPResponse> { //! println!("Receive request: {:?}", request); -//! None +//! +//! // Return the auto-generated response +//! request.response //! } //! fn main() {