Commit Graph

1818 Commits

Author SHA1 Message Date
Vladislav Tsarev
d9523f5c15 update spec
Some checks failed
Rust IPFS / ${{ matrix.platform.name }} (map[cross:false host:macos-latest name:macos target:x86_64-apple-darwin], map[rust:stable]) (push) Waiting to run
Rust IPFS / ${{ matrix.platform.name }} (map[cross:false host:ubuntu-latest name:ubuntu target:x86_64-unknown-linux-gnu], map[rust:stable]) (push) Failing after 21s
Rust IPFS / ${{ matrix.platform.name }} (map[cross:false host:windows-2019 name:windows target:x86_64-pc-windows-msvc], map[rust:stable]) (push) Waiting to run
Rust IPFS / lint-rust (push) Failing after 20s
Rust IPFS / ci (push) Blocked by required conditions
2024-10-18 14:09:53 +03:00
Vladislav Tsarev
1c95ac470d update spec 2024-10-18 13:48:49 +03:00
Vladislav Tsarev
3dec7eeb01 Initial commit 2024-10-18 11:36:33 +03:00
Vladislav Tsarev
0a4f885424 Initial 2024-10-18 11:35:15 +03:00
Joonas Koivunen
eb8e935530
Merge pull request #512 from eqlabs/sunset_for_now
doc: sunset, make maint status clear
2022-10-22 18:08:00 +03:00
Joonas Koivunen
37d1ffced6 doc: sunset, make maint status clear 2022-09-22 10:26:29 +03:00
Joonas Koivunen
965f86b819
Merge pull request #511 from evanrichter/fixes-only
first attempt at fuzzer fixes
2022-09-22 10:16:30 +03:00
Joonas Koivunen
7f54c73a12
Merge pull request #510 from evanrichter/fuzz-harness
IPLD fuzzing
2022-09-21 11:52:23 +03:00
Evan Richter
0e38435cbf
first attempt at fuzzer fixes 2022-08-19 18:36:49 -05:00
Evan Richter
f5bbdcb8a2
decode ipld cargo fuzz harness 2022-08-19 17:45:37 -05:00
bors[bot]
275b7615b8
Merge #479
479: Return time since connection if no round trip yet r=koivunej a=jmmaloney4

Fixes #178.


Co-authored-by: Jack Maloney <git@jmmaloney4.xyz>
Co-authored-by: Joonas Koivunen <joonas.koivunen@gmail.com>
2022-04-06 15:13:49 +00:00
Joonas Koivunen
1cc0e52e63 chore(CHANGELOG): note #479 2022-04-06 16:32:19 +03:00
Joonas Koivunen
94427ce41e refactor(swarm): prefer Instant::elapsed 2022-04-06 16:26:44 +03:00
Jack Maloney
828bfc4b75 Return time since connection if no round trip yet
Fixes #178
2022-04-06 15:46:54 +03:00
bors[bot]
2ca9704823
Merge #502
502: feat(http): add default values for --bits and --profile in ipfs init r=koivunej a=rand0m-cloud

This PR adds default values for the `ipfs init` command to be more like the go-ipfs `ipfs init`. `--bits 2048` and `--profile default` are the default flags if they not overridden.

I've also included an profiles length check that is more accurate and injects the default profile if none was provided. Plus a small update to an error print statement because 1024 bits for a RSA key is too low.

Co-authored-by: Addy Bryant <rand0m-cloud@outlook.com>
Co-authored-by: Joonas Koivunen <joonas.koivunen@gmail.com>
2022-04-06 10:09:10 +00:00
Joonas Koivunen
804f35de4b chore(CHANGELOG): note pr 502 2022-04-06 13:04:46 +03:00
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
bors[bot]
bbcbb6aa74
Merge #500
500: Add a test failure reason r=koivunej a=rand0m-cloud

I just spent some time debugging test failures as I looked back through previous versions of rust-ipfs. The test `pre_configured_listening_addrs` assumes that port 4001 is available for binding and hopes that the multiaddr `/ip4/127.0.0.1/tcp/4001` is found in `ipfs.identify()`. I always run an IPFS daemon in the background for web app development and found the test passing when I killed the daemon.

This PR adds additional context to the error message, `is port 4001 available to listen on?`.


Co-authored-by: Addy Bryant <adam.w.bryant@outlook.com>
2022-04-01 13:55:58 +00:00
Addy Bryant
3fcf7fa567 feat(test): added additional context on why test could fail 2022-04-01 16:53:12 +03:00
bors[bot]
e8f6d66a60
Merge #499
499: Update libp2p to v0.43.0 r=koivunej a=rand0m-cloud

This PR updates the dependency on libp2p. This is needed because currently building `ipfs-http` fails with an ambiguous type error inside of `libp2p`.

This PR passes all tests!!

### Checklist (can be deleted from PR description once items are checked)

- [x] **New** code is “linted” i.e. code formatting via rustfmt and language idioms via clippy
- [ ] There are no extraneous changes like formatting, line reordering, etc. Keep the patch sizes small!
- [ ] There are functional and/or unit tests written, and they are passing
- [ ] There is suitable documentation. In our case, this means:
    - [ ] Each command has a usage example and API specification
    - [ ] Rustdoc tests are passing on all code-level comments
    - [ ] Differences between Rust’s IPFS implementation and the Go or JS implementations are explained
- [x] Additions to CHANGELOG.md files



Co-authored-by: Addy Bryant <rand0m-cloud@outlook.com>
Co-authored-by: Joonas Koivunen <joonas.koivunen@gmail.com>
2022-04-01 13:22:58 +00:00
Joonas Koivunen
bf7a807275 doc(p2p): add fixme for possible issue
needs to be looked at.
2022-04-01 15:19:06 +03:00
Joonas Koivunen
081a598d1d test(conf): ignore pubsub tests on windows for now 2022-04-01 15:09:01 +03:00
Joonas Koivunen
50ad10fc4c test(pubsub): simplify, comment
simplify away the use of hashset's for messages along with any
filtering, instead simply assert that who witnessed what message and
include the sent message in the assertion as well.

comment as in use less broad technical names and more context specific
names.

also removes some of the duplicate comments.
2022-04-01 13:21:26 +03:00
Joonas Koivunen
277954b0d2 test(pubsub): disjoint topics as new test case
originally created in 8eae8e1fc119a6a1f5261c2f21b2ac3d0a7898f2 by
altering the single topic test, included in this commit as duplicating
version.

Co-authored-by: Addy Bryant <rand0m-cloud@outlook.com>
2022-04-01 13:19:29 +03:00
Joonas Koivunen
82453e5850 fix(build): stop building while writing an error
forgot, you must not use backticks outside apostrophes...
2022-04-01 12:11:40 +03:00
Joonas Koivunen
87a41146ce ci(win): use windows-2019 image
this might take care of the node-gyp problem, which might also be fixed
by updating it's version.
2022-04-01 12:11:40 +03:00
Addy Bryant
d4d3def1f1 fix(pubsub): tell Floodsub about the peers we want to hear from 2022-04-01 12:11:40 +03:00
Addy Bryant
897c16fe22 fix: apply review suggestions and fix clippy lints 2022-04-01 12:11:40 +03:00
Addy Bryant
1cee67de31 fix: corrected faulty Vec::retain logic and updated WrongPeerId test 2022-04-01 12:11:40 +03:00
Addy Bryant
72ff95dca0 fix(swarm): corrected dial failure logic 2022-04-01 12:11:40 +03:00
Addy Bryant
888e6f17ef wip: re-add code fragment to handle dial failure 2022-04-01 12:11:40 +03:00
Addy Bryant
77291ee213 fix(swarm-test): add biased to tokio::select for non-random behavior 2022-04-01 12:11:40 +03:00
Addy Bryant
6c6fc3d28b fix: update libp2p and renamed the changed types 2022-04-01 12:11:40 +03:00
Addy Bryant
31262b5feb chore: more updating to libp2p 2022-04-01 12:11:40 +03:00
Addy Bryant
3b5919397b temp fix: changed field order to workaround bug in libp2p 2022-04-01 12:11:40 +03:00
Addy Bryant
25c8d583fc fix: removed unneeded BehaviourEvent struct 2022-04-01 12:11:40 +03:00
Addy Bryant
93b31b38fd chore: clean up type signature 2022-04-01 12:11:40 +03:00
Addy Bryant
bdf977c22c enable event_process for BehaviourEvent 2022-04-01 12:11:39 +03:00
Addy Bryant
a996922cc0 added change to changelog 2022-04-01 12:11:39 +03:00
Addy Bryant
e4002d6d43 re-add connection closed and established 2022-04-01 12:11:39 +03:00
Addy Bryant
085be771fe replaced todo placeholders 2022-04-01 12:11:39 +03:00
Addy Bryant
7e9da72dc5 fix the pubsub network behaviour action type 2022-04-01 12:11:39 +03:00
Addy Bryant
c1a5bba1ea some updates to pubsub 2022-04-01 12:11:39 +03:00
Addy Bryant
918d4d8f6d more updating of types 2022-04-01 12:11:39 +03:00
Addy Bryant
4e5ff4d23e more libp2p updating 2022-04-01 12:11:39 +03:00
Addy Bryant
c3a48c9699 fix: updated libp2p in the bitswap crate 2022-04-01 12:11:39 +03:00
Addy Bryant
f601b8d3c7 fix: update libp2p and renamed the changed types 2022-04-01 12:11:39 +03:00
bors[bot]
3eff4e1534
Merge #493
493: Strict ordering for DAG-CBOR-encoded map keys r=koivunej a=cdata

This change proposes a fix for #492 . `Ipld::Map` keys are sorted according to [the strictness guidelines in the DAG-CBOR spec](https://github.com/ipld/ipld/blob/master/specs/codecs/dag-cbor/spec.md#:~:text=The%20keys%20in,order%20sorts%20earlier.) when encoding them as DAG-CBOR.


Co-authored-by: Chris Joel <chris@scriptolo.gy>
Co-authored-by: Christopher Joel <240083+cdata@users.noreply.github.com>
2022-02-01 06:28:13 +00:00
Christopher Joel
80d2b79cb7
Update src/ipld/dag_cbor.rs
Co-authored-by: Joonas Koivunen <joonas.koivunen@gmail.com>
2022-01-31 14:50:42 -08:00
Christopher Joel
888776f279
Update src/ipld/dag_cbor.rs
Co-authored-by: Joonas Koivunen <joonas.koivunen@gmail.com>
2022-01-31 14:50:27 -08:00