From 3d54f11d9ce9d76ce5b5a7420b9807235a4f718f Mon Sep 17 00:00:00 2001 From: Raycho Mukelov Date: Thu, 27 Jul 2023 16:43:02 +0300 Subject: [PATCH] Initial --- raft_consensus.nim | 14 ++++++++++++++ raft_consensus.nimble | 22 ++++++++++++++++++++++ raft_consensus/raft_consensus_api.nim | 0 3 files changed, 36 insertions(+) create mode 100644 raft_consensus.nim create mode 100644 raft_consensus.nimble create mode 100644 raft_consensus/raft_consensus_api.nim diff --git a/raft_consensus.nim b/raft_consensus.nim new file mode 100644 index 0000000..21e8eaf --- /dev/null +++ b/raft_consensus.nim @@ -0,0 +1,14 @@ +# nim-raft-consesnsus +# Copyright (c) 2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + +import + raft_consensus/raft_consensus_api + +export + raft_consensus_api diff --git a/raft_consensus.nimble b/raft_consensus.nimble new file mode 100644 index 0000000..1ba1de7 --- /dev/null +++ b/raft_consensus.nimble @@ -0,0 +1,22 @@ +# nim-raft-consensus +# Copyright (c) 2023 Status Research & Development GmbH +# Licensed under either of +# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) +# * MIT license ([LICENSE-MIT](LICENSE-MIT)) +# at your option. +# This file may not be copied, modified, or distributed except according to +# those terms. + +mode = ScriptMode.Verbose + +packageName = "raft-consensus" +version = "0.0.1" +author = "Status Research & Development GmbH" +description = "raft consensus in nim" +license = "Apache License 2.0" +skipDirs = @["tests"] + +requires "nim >= 1.2.0" +requires "stew >= 0.1.0" + +# Helper functions diff --git a/raft_consensus/raft_consensus_api.nim b/raft_consensus/raft_consensus_api.nim new file mode 100644 index 0000000..e69de29