diff --git a/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache b/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache
index c52c1e889771..f3496ed3856c 100644
--- a/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache
+++ b/modules/openapi-generator/src/main/resources/rust-server/Cargo.mustache
@@ -47,4 +47,4 @@ uuid = {version = "0.5", optional = true, features = ["serde", "v4"]}
[dev-dependencies]
clap = "2.25"
-error-chain = "0.11"
+error-chain = "0.12"
diff --git a/pom.xml b/pom.xml
index b7040100d010..11acff4e3d13 100644
--- a/pom.xml
+++ b/pom.xml
@@ -959,7 +959,7 @@
samples/client/petstore/typescript-angular-v4.3/npm
samples/client/petstore/ruby
-
+ samples/server/petstore/rust-server
diff --git a/samples/server/petstore/rust-server/Cargo.toml b/samples/server/petstore/rust-server/Cargo.toml
index 536506c88c6d..ce79b9f32b6f 100644
--- a/samples/server/petstore/rust-server/Cargo.toml
+++ b/samples/server/petstore/rust-server/Cargo.toml
@@ -45,4 +45,4 @@ serde-xml-rs = {git = "git://github.com/Metaswitch/serde-xml-rs.git" , branch =
[dev-dependencies]
clap = "2.25"
-error-chain = "0.11"
+error-chain = "0.12"