Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gebogebogebo committed Aug 14, 2020
1 parent 57bf623 commit 826c380
Showing 36 changed files with 18,534 additions and 0 deletions.
175 changes: 175 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'ctap2'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=ctap2"
],
"filter": {
"name": "ctap2",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'ctap2'",
"cargo": {
"args": [
"build",
"--bin=ctap2",
"--package=ctap2"
],
"filter": {
"name": "ctap2",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'ctap2'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=ctap2",
"--package=ctap2"
],
"filter": {
"name": "ctap2",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug example 'oom_test'",
"cargo": {
"args": [
"build",
"--example=oom_test",
"--package=ctap2"
],
"filter": {
"name": "oom_test",
"kind": "example"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in example 'oom_test'",
"cargo": {
"args": [
"test",
"--no-run",
"--example=oom_test",
"--package=ctap2"
],
"filter": {
"name": "oom_test",
"kind": "example"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug example 'crypto_bench'",
"cargo": {
"args": [
"build",
"--example=crypto_bench",
"--package=ctap2"
],
"filter": {
"name": "crypto_bench",
"kind": "example"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in example 'crypto_bench'",
"cargo": {
"args": [
"test",
"--no-run",
"--example=crypto_bench",
"--package=ctap2"
],
"filter": {
"name": "crypto_bench",
"kind": "example"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug example 'panic_test'",
"cargo": {
"args": [
"build",
"--example=panic_test",
"--package=ctap2"
],
"filter": {
"name": "panic_test",
"kind": "example"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in example 'panic_test'",
"cargo": {
"args": [
"test",
"--no-run",
"--example=panic_test",
"--package=ctap2"
],
"filter": {
"name": "panic_test",
"kind": "example"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
16 changes: 16 additions & 0 deletions work/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/<your program>",
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
45 changes: 45 additions & 0 deletions work/sample01/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'sample01'",
"cargo": {
"args": [
"build",
"--bin=sample01",
"--package=sample01"
],
"filter": {
"name": "sample01",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'sample01'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=sample01",
"--package=sample01"
],
"filter": {
"name": "sample01",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
10 changes: 10 additions & 0 deletions work/sample01/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[package]
name = "sample01"
version = "0.1.0"
authors = ["gebo <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cbor = { path = "libraries/cbor" }
15 changes: 15 additions & 0 deletions work/sample01/libraries/cbor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "cbor"
version = "0.1.0"
authors = [
"Fabian Kaczmarczyck <[email protected]>",
"Guillaume Endignoux <[email protected]>",
"Jean-Michel Picod <[email protected]>",
]
license = "Apache-2.0"
edition = "2018"

[dependencies]

[features]
std = []
29 changes: 29 additions & 0 deletions work/sample01/libraries/cbor/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;
#[cfg(feature = "std")]
extern crate core;

#[macro_use]
pub mod macros;
pub mod reader;
pub mod values;
pub mod writer;

pub use self::reader::read;
pub use self::values::{KeyType, SimpleValue, Value};
pub use self::writer::write;
Loading

0 comments on commit 826c380

Please sign in to comment.