Commit Graph

1818 Commits

Author SHA1 Message Date
Mark Robert Henderson
46da1de240
Update pull-request-template.md 2020-03-12 14:13:45 -04:00
Mark Robert Henderson
d35ff20df2
Update pull-request-template.md 2020-03-12 14:13:12 -04:00
Mark Henderson
ac46443527 Adding pull request template 2020-03-12 14:06:59 -04:00
David Craven
4033c96921 Add some derives. 2020-03-12 16:31:03 +01:00
Joonas Koivunen
e5c7c084ca fix: try fix build by fixing excludes, restore cross
In addition to typoing the http crate name again I managed to remove
cross compilation on the non-android cross compilation targets.
2020-03-12 16:30:36 +02:00
Joonas Koivunen
2db821d64a refactor: borrowing getters in IpfsOptions 2020-03-12 16:30:36 +02:00
Joonas Koivunen
b3b08e3c31 chore: move use std::fmt with others 2020-03-12 16:30:36 +02:00
Joonas Koivunen
051d68679f fix: try disabling http on cross compilation targets
this is because I don't know how to install openssl in a cross
compilable way with brew/apt-get.
2020-03-12 16:30:36 +02:00
Joonas Koivunen
18a9378d8d fix: try with correct libssl-dev package name 2020-03-12 16:30:36 +02:00
Joonas Koivunen
08db1c5db8 fix: try fix android, mac with explicit deps
apparently these images have the openssl installed on some hosts.
2020-03-12 16:30:36 +02:00
Joonas Koivunen
27954348b9 fix: try setting VCPKGRS_DYNAMIC for windows build 2020-03-12 16:30:36 +02:00
Joonas Koivunen
c04e46ccb1 fix: try fixing ci on windows
copied openssl vcpkg magic from 53ff3ad099/.github/workflows/windows.yml
2020-03-12 16:30:36 +02:00
Joonas Koivunen
e0179d5ef4 add: test for loading go-ipfs 0.4.23 rsa key 2020-03-12 16:30:36 +02:00
Joonas Koivunen
6b780a767d add: tests for pem_to_der 2020-03-12 16:30:36 +02:00
Joonas Koivunen
53236d6665 fix: deny init with <= 2048 bit keys
this might need to be changed silently to 2048 if the tests use 1024 bit
keys.
2020-03-12 16:30:36 +02:00
Joonas Koivunen
5fb9add3c3 doc: add doc comments for config 2020-03-12 16:30:36 +02:00
Joonas Koivunen
abb6ef1e0a fix: warning on unused variable 2020-03-12 16:30:36 +02:00
Joonas Koivunen
f3e0b8a890 chore: cargo fmt 2020-03-12 16:30:36 +02:00
Joonas Koivunen
18975b3427 chore: refresh lockfile 2020-03-12 16:30:36 +02:00
Joonas Koivunen
f690d51b8e fix: output the generated peerid in main 2020-03-12 16:30:36 +02:00
Joonas Koivunen
9b76a35275 fix: use base64pad instead of base64, field names 2020-03-12 16:30:36 +02:00
Joonas Koivunen
47b9d02a2a feat: rsa keygen using openssl with compat storage
taking on the openssl dependency is used for:

 - rsa key generation
 - from/to `pkcs#1` and `pkcs#8` transformations

Crate `rsa` was also considered but it does not support exporting keys
in any format at the moment and it's import code looks different from
`ring`s (this could be the case of not importing the "precomputed"
values in `rsa`).

The `pkcs#1` is (hopefully) used with go-ipfs-config/go-libp2p
compatible key storage but rust-libp2p/ring need the key in `pkcs#8` der
format. PEM parsing and PEM to DER was implemented by hand as it looked
like the existingly depended on crates are not compatible as much as
possible.
2020-03-12 16:30:36 +02:00
Joonas Koivunen
883ccffdaf refactor: move bootstrap and secio_key_pair to IpfsOptions
this should hopefully lead to ConfigFile not being needed anymore
2020-03-12 16:30:36 +02:00
Joonas Koivunen
2c592335cc add: re-export multiaddr, peerid, keypair
in preparation for making the library outside configurable without a
configuration file.
2020-03-12 16:30:36 +02:00
Joonas Koivunen
826755500a refactor: move v0::version in own module 2020-03-12 16:30:36 +02:00
Joonas Koivunen
992838f9a2 add: /api/v0/version with query args 2020-03-11 14:02:29 -04:00
Joonas Koivunen
c316a1c824 add: build metadata with vergen
this could be moved over to rust-ipfs but I think that people will
prefer to track their own binarys version (which is tracked hopefully in
a vcs) instead of their `rust-ipfs` deps version, which will be in their
`Cargo.lock` file.
2020-03-11 14:02:29 -04:00
Joonas Koivunen
5fa57dd06a fix: ci stop using actions/checkout@v1
with the https://github.com/ipfs-rust/rust-ipfs/pull/85 there were first
some spurious failures on windows (probably transient gh infra issues)
and later we noticed that the checkout action on lint-rust and
readme-doctest was failing.

I noticed the checkout action on the failing jobs were using an older
version of the failing action than the matrix action which succeeded.
tried to upgrade that and it worked, didn't look further.
2020-03-11 13:07:57 +02:00
Joonas Koivunen
55ad527371 fix rebased patched dep 2020-03-10 15:21:11 +02:00
David Craven
ee114cc1fc Remove travis status badge. 2020-03-10 09:15:45 +01:00
David Craven
ae7ed3c852 Use rust-ipld. 2020-03-10 09:15:45 +01:00
Mark Robert Henderson
428070df1f
Fixing a few README typos 2020-03-06 17:26:41 -05:00
David Craven
b9e1444ef9 Enable android and ios in ci. 2020-03-06 17:38:37 +01:00
David Craven
d20d061c9e Update Cargo.lock 2020-03-06 17:38:37 +01:00
David Craven
467b0a4a73 Update libp2p and cid. 2020-03-06 17:38:37 +01:00
David Craven
8419fe8438 Test README on ci. 2020-03-06 17:38:37 +01:00
Mark Robert Henderson
00707dc45e Update issue templates 2020-03-06 11:59:14 +01:00
Mark Robert Henderson
3e753e6bd0 Create CODE_OF_CONDUCT.md
Are we ok with using the IPFS Community Code of Conduct?
2020-03-05 18:35:03 -05:00
Mark Robert Henderson
493c26d20a Update CONTRIBUTING.md 2020-03-05 21:02:37 +01:00
Mark Robert Henderson
9d03102eb9 Update CONTRIBUTING.md
Co-Authored-By: Joonas Koivunen <joonas@equilibrium.co>
2020-03-05 21:02:37 +01:00
Mark Robert Henderson
cf66109e8d Update CONTRIBUTING.md
Co-Authored-By: Joonas Koivunen <joonas@equilibrium.co>
2020-03-05 21:02:37 +01:00
Mark Robert Henderson
69a925af38 Update CONTRIBUTING.md 2020-03-05 21:02:37 +01:00
Mark Robert Henderson
52a885de38 CONTRIBUTING.md Outline with lots of TODOs 2020-03-05 21:02:37 +01:00
Joonas Koivunen
e032d3d4aa
Http v0 for testing (#71)
* add first draft of the http api

* chore note on the difficulties with with_graceful_shutdown

* add the second required output line by js-ipfsd-ctl

* run cargo fmt for different formatting from rls?

* chore note on (stalled) progress

* add remaining cli args boilerplate

what is missing now is using ephemeral addresses with the warp, as
js-ipfsd-ctl doesn't always to shutdown the older one, or then it just
doesn't shut down correctly.

* fix bind to ephemeral localhost port

* add env_logger initialization

* fix faked multiaddr typo

never remember its "ip4" instead of "ipv4"

* fix do GET on every method in /id

for some reason js-ipfsd-ctl will do a POST against /api/v0/id.

* chore run cargo fmt

* Adding placeholder NOT_IMPLEMENTED endpiints

* rustfmt

* Feedback from PR

* Update http/Cargo.toml

Co-Authored-By: Joonas Koivunen <joonas@equilibrium.co>

Co-authored-by: Mark Robert Henderson <henderson.mark@gmail.com>
2020-03-05 21:38:44 +02:00
Mark Robert Henderson
5e4e0d61ba
Update README.md 2020-03-05 12:48:29 -05:00
Mark Robert Henderson
37129ec56b
Merge pull request #72 from ipfs-rust/readme-updates
Standard Readme
2020-03-05 12:44:45 -05:00
Mark Robert Henderson
d032f36768
Update README.md 2020-03-05 12:29:33 -05:00
Mark Robert Henderson
168a630e6e
Update README.md 2020-03-05 12:26:11 -05:00
Mark Robert Henderson
32fcbab45c
Update README.md 2020-03-05 11:37:03 -05:00
Mark Robert Henderson
4afc6e1e55
Standard Readme
Working from https://github.com/RichardLitt/standard-readme/blob/master/spec.md
2020-03-05 11:21:01 -05:00