Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JEnoch committed Dec 17, 2020
0 parents commit 2565262
Show file tree
Hide file tree
Showing 10 changed files with 1,694 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,75 @@
#
# Copyright (c) 2017, 2020 ADLINK Technology Inc.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# ADLINK zenoh team, <zenoh@adlink-labs.tech>
#
name: CI

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'

jobs:
build:

name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v2

# For Windows, install llvm and use a workaround to resolve link error with C:\msys64\mingw64\bin\libclang.dll
# Credits: https://github.com/rust-rocksdb/rust-rocksdb/pull/484
- name: Remove msys64
if: runner.os == 'Windows'
run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse
- name: Install dependencies
if: runner.os == 'Windows'
run: choco install llvm -y

- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy

- name: Code format check
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check

- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all --examples -- -D warnings

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --all-targets

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose
19 changes: 19 additions & 0 deletions .gitignore
@@ -0,0 +1,19 @@
# Generated by Cargo
# will have compiled files and executables
**/target

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# CLion project directory
.idea

# Emacs temps
*~

# MacOS Related
.DS_Store
51 changes: 51 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,51 @@
# Contributing to Eclipse zenoh

Thanks for your interest in this project.

## Project description

Eclipse zenoh provides is a stack designed to
1. minimize network overhead,
2. support extremely constrained devices,
3. supports devices with low duty-cycle by allowing the negotiation of data exchange modes and schedules,
4. provide a rich set of abstraction for distributing, querying and storing data along the entire system, and
5. provide extremely low latency and high throughput.

* https://projects.eclipse.org/projects/iot.zenoh

## Developer resources

Information regarding source code management, builds, coding standards, and
more.

* https://projects.eclipse.org/projects/iot.zenoh/developer

The project maintains the following source code repositories

* https://github.com/eclipse-zenoh

## Eclipse Contributor Agreement

Before your contribution can be accepted by the project team contributors must
electronically sign the Eclipse Contributor Agreement (ECA).

* http://www.eclipse.org/legal/ECA.php

Commits that are provided by non-committers must have a Signed-off-by field in
the footer indicating that the author is aware of the terms by which the
contribution has been provided to the project. The non-committer must
additionally have an Eclipse Foundation account and must have a signed Eclipse
Contributor Agreement (ECA) on file.

For more information, please see the Eclipse Committer Handbook:
https://www.eclipse.org/projects/handbook/#resources-commit

## Contact

Contact the project developers via the project's "dev" list.

* https://accounts.eclipse.org/mailing-list/zenoh-dev

Or via the Gitter channel.

* https://gitter.im/atolab/zenoh
13 changes: 13 additions & 0 deletions CONTRIBUTORS.md
@@ -0,0 +1,13 @@
# Contributors to Eclipse zenoh

These are the contributors to Eclipse zenoh (the initial contributors and the contributors listed in the Git log).


| GitHub username | Name |
| --------------- | -----------------------------|
| kydos | Angelo Corsaro (ADLINK) |
| JEnoch | Julien Enoch (ADLINK) |
| OlivierHecart | Olivier Hécart (ADLINK) |
| gabrik | Gabriele Baldoni (ADLINK) |
| Mallets | Luca Cominardi (ADLINK) |
| IvanPaez | Ivan Paez (ADLINK) |
51 changes: 51 additions & 0 deletions Cargo.toml
@@ -0,0 +1,51 @@
#
# Copyright (c) 2017, 2020 ADLINK Technology Inc.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# ADLINK zenoh team, <zenoh@adlink-labs.tech>
#
[package]
name = "zenoh_backend_rocksdb"
version = "0.5.0-beta.6"
authors = ["kydos <angelo@icorsaro.net>",
"Julien Enoch <julien@enoch.fr>",
"Olivier Hécart <olivier.hecart@adlinktech.com>",
"Luca Cominardi <luca.cominardi@adlinktech.com>"]
edition = "2018"

[lib]
name = "zbackend_rocksdb"
crate-type = ["cdylib"]

[dependencies]
# TODO: set zenoh version when 0.5.0-beta.6 is released
zenoh_backend_traits = { git = "https://github.com/eclipse-zenoh/zenoh.git" }
zenoh = { git = "https://github.com/eclipse-zenoh/zenoh.git" }
zenoh-util = { git = "https://github.com/eclipse-zenoh/zenoh.git" }
uhlc = "0.2"
async-trait = "0.1"
lazy_static = "1.4.0"
env_logger = "0.7.1"
log = "0.4"
git-version = "0.3.4"
rocksdb = "0.15.0"


[dependencies.async-std]
version = "=1.6.5"
features = ["unstable"]

[package.metadata.deb]
name = "zenoh-backend-rocksdb"
maintainer = "zenoh-dev@eclipse.org"
copyright = "2017, 2020 ADLINK Technology Inc."
section = "net"
license-file = ["LICENSE", "0"]
depends = "zenoh-storages"

0 comments on commit 2565262

Please sign in to comment.