From 061bf3d08f548971c2c4f53d21453497edf17b8e Mon Sep 17 00:00:00 2001 From: Quentin Le Sceller Date: Tue, 28 Apr 2020 12:17:34 -0400 Subject: [PATCH] Add depreciation warning (#3310) --- api/src/handlers.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/src/handlers.rs b/api/src/handlers.rs index 28ea0f1f27..8375bd4f14 100644 --- a/api/src/handlers.rs +++ b/api/src/handlers.rs @@ -305,6 +305,10 @@ fn response>(status: StatusCode, text: T) -> Response { } // Legacy V1 router +#[deprecated( + since = "4.0.0", + note = "The V1 Node API will be removed in grin 5.0.0. Please migrate to the V2 API as soon as possible." +)] pub fn build_router( chain: Arc, tx_pool: Arc>,