Comments (3)
For async/await support, I haved tried a little bit and find it tedious to write almost the same code for both async and sync with only difference in the http request details. And I have wrote a crate named maybe-async
to provide a possible non-trival way to toggle between sync and async with a feature gate. In this way, I can dissocaite the http request crate as well as arango types and API.
This is planning in the near future, maybe months later.
But, what do you mean by using async-std? AFAIK, the async-std crate provides only low level equivalent to rust std. And there is almost no upstream library implements web request by manual handling of raw socket bytes.
from arangors.
In version 0.3, the async
syntax is supported. If you want to stick with async-std
, try surf_async
feature and disable default features. Then all connection to arangoDB are sended with surf
.
Or you can implement a custom client, if you don't like surf
and wanna use another HTTP client.
from arangors.
This is great. Thanks.
from arangors.
Related Issues (20)
- Add Trait for Database<T> and Transaction<T> HOT 4
- arangors::Connexion problem
- rust web development HOT 1
- User Management HOT 2
- reqwest + rustls HOT 6
- Release: new version with transactions, analyzers and views? HOT 2
- Example dependency using the blocking feature in README.md is wrong. HOT 1
- Transaction support improvements
- Error Improvements HOT 1
- Improve error message when credentials for connection are wrong HOT 5
- Make fields on `InsertOption`, `UpdateOption`, etc public HOT 3
- reqwest 0.11 breaks tokio dependencies HOT 4
- Is this project unmaintained? HOT 3
- Make Document and Header derive Clone HOT 2
- Unit test failing on AqlQueryBuilder HOT 5
- rustls features don't work
- arangors 0.5.0 phantom compile errors HOT 11
- Are bind parameters passed on to HTTP API? HOT 3
- save and update views HOT 1
- support pipeline analyzer HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arangors.