GithubHelp home page GithubHelp logo

rust-vault's Issues

compilation issues

Hey

I have added valensas-vault = "0.1.5" in cargo.toml
Taking ur sample from docs.rs.
Getting compilation error:
error[E0277]: the trait bound for<'de> TestData: serde::de::Deserialize<'de> is not satisfied
--> src/main.rs:24:38
|
24 | let value = vault_service.read::(secret_key).await.unwrap();
| ^^^^^^^^ the trait for<'de> serde::de::Deserialize<'de> is not implemented for TestData

rror[E0752]: `main` function is not allowed to be `async`

--> src/main.rs:11:1
|
11 | async fn main() {
| ^^^^^^^^^^^^^^^ main function is not allowed to be async

panicking

during inserting sample code was panicked:

thread 'main' panicked at 'called Result::unwrap() on an Err value: RestClientError { source: ResponseParseError { source: EOF while parsing a value at line 1 column 0, content: Some("") } }', src/main.rs:20:58

it is

vault_service.insert(secret_key, secret_value).await.unwrap();

tcp stream meanwhile:

POST /v1/secret/data/testzxc HTTP/1.1
x-vault-token: hvs.MySexyToken
accept: /
host: localhost:8200
content-length: 24

{"data":{"name":"data"}}

HTTP/1.1 204 No Content
Cache-Control: no-store
Content-Type: application/json
Strict-Transport-Security: max-age=31536000; includeSubDomains
Date: Wed, 19 Jul 2023 13:13:03 GMT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.