Commit Graph

384 Commits

Author SHA1 Message Date
Addy Bryant
a0d44bbb61 feat(http): add default values for --bits and --profile
with a expanded profiles length check that is more accurate
2022-04-05 12:05:27 -04:00
Addy Bryant
31262b5feb chore: more updating to libp2p 2022-04-01 12:11:40 +03:00
Joonas Koivunen
e9355bd498 chore(http): unused warnings on query structs
these query types were originally observing what kind of requests
conformance tests do and what kind of requests go-ipfs supports, so
keeping them as there might be some value. to be removed when upgrading
conformance tests.
2022-01-31 12:10:00 +02:00
Krzysztof Lis
414ccf5cbd chore: upgrade some of the other deps, fix tests 2021-08-18 14:58:33 +02:00
Krzysztof Lis
6c7004ae14 chore: upgrade to libp2p 0.39
Includes replacing `upgrade::{write_one, read_one}` with `upgrade::{write_length_prefixed, read_length_prefixed}` respectively, which is a direct consequence of [PR2111](https://github.com/libp2p/rust-libp2p/pull/2111).
2021-08-18 14:57:47 +02:00
bors[bot]
b63eb14fda
Merge #466
466: In-memory reading from tar archives instead of extract to temp folder r=koivunej a=Scondo

Get rid of work with filesystem in fs-unrelated tests.

No more problems like https://github.com/rs-ipfs/rust-ipfs/issues/465 lead to tests failure.

Co-authored-by: Scondo <scondo@mail.ru>
2021-08-02 17:44:20 +00:00
Mirko von Leipzig
f4a1a9bfca chore(clippy): clone of copy type 2021-08-02 14:49:09 +02:00
Mirko von Leipzig
b732b7ab24 chore(clippy): redundant borrows 2021-08-02 14:49:09 +02:00
Mirko von Leipzig
5340a38fa2 chore(clippy): prefer From to Into 2021-08-02 14:49:08 +02:00
Scondo
5a8499e619 rust fmt 2021-07-26 09:46:16 +03:00
Scondo
ed6f89a791 In-memory reading from tar archives instead of extract to temp folder 2021-07-26 09:36:53 +03:00
Joonas Koivunen
dc0c6a0af0 chore: tokio::test is now single-threaded 2021-01-25 13:48:30 +02:00
Joonas Koivunen
e68d134edc chore(deps): mpart-async 0.5 2021-01-25 11:49:29 +02:00
Joonas Koivunen
0e06e51776 chore(deps): warp 0.3 2021-01-25 11:49:26 +02:00
Joonas Koivunen
a162ad01ba chore(deps): prost 0.7 2021-01-25 11:49:07 +02:00
Joonas Koivunen
ffd043c618 chore: clippy 2021-01-25 11:48:57 +02:00
Joonas Koivunen
6de437cab7 feat: expose libp2p::multiaddr::multiaddr in ipfs
quite unfortunate that we need to add more of re-exports as we've been
hoping to cut them down.
2021-01-25 11:48:57 +02:00
Joonas Koivunen
2e0b436172 chore: most of the libp2p updating, comment out mdns
not a nice thing to do but there remains an issue with the dependencies,
and the libp2p tokio-mdns feature is gone. there are also some conflicts
remaining.
2021-01-25 11:46:24 +02:00
Joonas Koivunen
66c360cd13 chore(deps): latest warp 2021-01-25 11:45:21 +02:00
Joonas Koivunen
5b55ded946 chore(deps): tokio 1.0 2021-01-25 11:40:49 +02:00
ljedrz
bc0379402b chore: post-update tweaks
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-01-18 16:56:36 +02:00
ljedrz
7e51079010 chore: update tokio to 0.3
Signed-off-by: ljedrz <ljedrz@gmail.com>
2021-01-18 16:56:36 +02:00
Joonas Koivunen
55f5995f08 refactor: turn into range contains check 2021-01-04 10:55:07 +02:00
Joonas Koivunen
232822ca58 chore: clippy strip prefix 2020-12-08 14:52:53 +02:00
Joonas Koivunen
5836fe194c chore: clippy unnecessary lazy eval 2020-12-08 14:52:27 +02:00
Niklas Long
70a9e992c7 refactor: clearer naming for lock related fields/error variants 2020-11-17 12:15:48 +01:00
bors[bot]
4044d6cb86
Merge #427
427: Further reduction of ipfs-http compilation times, take two r=aphelionz a=koivunej

This PR supercedes #422 as bors couldn't handle the "PR is from removed repository" case, so this is made from a branch which has only the same commit as the previous PR. PR uses the balanced tree approach from warp issue for further compilation time speedups. The commit hash differs because I apparently applied it per githubs instructions on top of different commit than the original seems to be, with different metadata.

Closes #422.

Co-authored-by: Artem Tarasov <artem@devopps.de>
2020-11-05 14:36:43 +00:00
bors[bot]
1b07ed4b9b
Merge #420
420: docs(http): initial draft of tutorial r=koivunej a=niklaslong

This is a first draft of the tutorial mentioned in #402. 

It currently covers:
- installing rust
- configuration of the `IPFS_PATH` 
- `-- init`
- `-- daemon`
- `ipfs id` from the go-ipfs CLI 


Co-authored-by: Niklas Long <niklas@equilibrium.co>
2020-11-05 10:19:22 +00:00
Artem Tarasov
b2365db44e Improved "combine" macro in ipfs-http
Copy-and-paste from https://github.com/seanmonstar/warp/issues/619;
Further reduces compilation time (30-40% improvement observed).

Removed "combine_unify" macro since it didn't add any extra benefit.
2020-11-05 11:31:04 +02:00
Niklas Long
eb005bb99a refactor(http): widen write error variant 2020-10-30 17:50:08 +01:00
Niklas Long
328d2abf54 refactor(http): flush write buffer for config file 2020-10-30 13:32:48 +01:00
Niklas Long
57226e16c1 doc: add changelog entry for #423 2020-10-30 10:56:26 +01:00
Niklas Long
9768f04f21 refactor(http): introduce Config struct as configuration facade 2020-10-29 15:20:49 +01:00
Niklas Long
58e7368100 refactor(http): return config struct in load 2020-10-29 15:20:42 +01:00
Niklas Long
4352695e6d refactor(http): return config struct in init 2020-10-29 15:20:01 +01:00
Niklas Long
ad2d93b3c9 docs(http): more small tweaks to tutorial 2020-10-27 15:48:50 +01:00
Niklas Long
3d677c6ecc fix(http): use slice pattern matching for MultiAddr match/conversion to SocketAddr 2020-10-27 14:47:40 +01:00
Niklas Long
70c2e7d76f docs(http): small tweaks to tutorial 2020-10-27 10:00:12 +01:00
Niklas Long
07f5c6a76b docs(http): explain cmd line options in tutorial 2020-10-27 09:18:07 +01:00
Niklas Long
7b79d5d49e docs(http): remove static version from getting started examples 2020-10-26 14:52:18 +01:00
Niklas Long
9fb93fc63d fix(http): use multiaddr instead of socketaddr in config 2020-10-26 12:44:08 +01:00
Niklas Long
dfcfe84ef6 fix(http): use singular for api listening addr 2020-10-26 10:11:36 +01:00
Niklas Long
b10efa41e0 fix(http): serialise addresses.api as API 2020-10-26 10:10:51 +01:00
Niklas Long
d4f475d0e1 fix(http): check for single profile before creating dir + config 2020-10-23 14:34:34 +02:00
Niklas Long
9dc0c33546 fix(http): plan for future support of multiple profiles 2020-10-23 13:38:01 +02:00
Niklas Long
ded7549c58 fix(http): create Profile abstraction to allow port choice 2020-10-22 18:08:49 +02:00
Niklas Long
ab74008ef7 docs(http): initial draft of tutorial 2020-10-21 15:50:54 +02:00
Niklas Long
6834938a4e fix(http): change default ipfs path to .rust-ipfs 2020-10-21 11:50:07 +02:00
Joonas Koivunen
d026fff0fe
doc: suggestions from code review
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-07 16:55:08 +03:00
Joonas Koivunen
297eb451fb doc: add http api links for bootstrap 2020-10-07 15:33:47 +03:00