summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/rust.yml4
-rw-r--r--Cargo.toml6
-rw-r--r--ipfs-api-backend-actix/Cargo.toml24
-rw-r--r--ipfs-api-backend-actix/src/backend.rs140
-rw-r--r--ipfs-api-backend-actix/src/error.rs33
-rw-r--r--ipfs-api-backend-actix/src/lib.rs18
-rw-r--r--ipfs-api-backend-hyper/Cargo.toml29
-rw-r--r--ipfs-api-backend-hyper/src/backend.rs166
-rw-r--r--ipfs-api-backend-hyper/src/error.rs30
-rw-r--r--ipfs-api-backend-hyper/src/lib.rs18
-rw-r--r--ipfs-api-examples/Cargo.toml27
-rw-r--r--ipfs-api-examples/examples/add_file.rs (renamed from ipfs-api/examples/add_file.rs)5
-rw-r--r--ipfs-api-examples/examples/add_tar.rs (renamed from ipfs-api/examples/add_tar.rs)5
-rw-r--r--ipfs-api-examples/examples/bootstrap_default.rs (renamed from ipfs-api/examples/bootstrap_default.rs)5
-rw-r--r--ipfs-api-examples/examples/config.rs (renamed from ipfs-api/examples/config.rs)5
-rw-r--r--ipfs-api-examples/examples/dag.rs (renamed from ipfs-api/examples/dag.rs)5
-rw-r--r--ipfs-api-examples/examples/default_config.json (renamed from ipfs-api/examples/default_config.json)0
-rw-r--r--ipfs-api-examples/examples/dns.rs (renamed from ipfs-api/examples/dns.rs)5
-rw-r--r--ipfs-api-examples/examples/get_commands.rs (renamed from ipfs-api/examples/get_commands.rs)5
-rw-r--r--ipfs-api-examples/examples/get_stats.rs (renamed from ipfs-api/examples/get_stats.rs)5
-rw-r--r--ipfs-api-examples/examples/get_swarm.rs (renamed from ipfs-api/examples/get_swarm.rs)5
-rw-r--r--ipfs-api-examples/examples/get_version.rs (renamed from ipfs-api/examples/get_version.rs)5
-rw-r--r--ipfs-api-examples/examples/log_tail.rs (renamed from ipfs-api/examples/log_tail.rs)5
-rw-r--r--ipfs-api-examples/examples/mfs.rs (renamed from ipfs-api/examples/mfs.rs)5
-rw-r--r--ipfs-api-examples/examples/ping_peer.rs (renamed from ipfs-api/examples/ping_peer.rs)5
-rw-r--r--ipfs-api-examples/examples/pubsub.rs (renamed from ipfs-api/examples/pubsub.rs)10
-rw-r--r--ipfs-api-examples/examples/replace_config.rs (renamed from ipfs-api/examples/replace_config.rs)5
-rw-r--r--ipfs-api-examples/examples/resolve_name.rs (renamed from ipfs-api/examples/resolve_name.rs)5
-rw-r--r--ipfs-api-examples/src/lib.rs19
-rw-r--r--ipfs-api-prelude/Cargo.toml39
-rw-r--r--ipfs-api-prelude/src/api.rs (renamed from ipfs-api/src/client/internal.rs)1014
-rw-r--r--ipfs-api-prelude/src/backend.rs232
-rw-r--r--ipfs-api-prelude/src/error.rs37
-rw-r--r--ipfs-api-prelude/src/from_uri.rs (renamed from ipfs-api/src/client/from_uri.rs)3
-rw-r--r--ipfs-api-prelude/src/header.rs (renamed from ipfs-api/src/header.rs)1
-rw-r--r--ipfs-api-prelude/src/lib.rs27
-rw-r--r--ipfs-api-prelude/src/read.rs (renamed from ipfs-api/src/read.rs)8
-rw-r--r--ipfs-api-prelude/src/request/add.rs (renamed from ipfs-api/src/request/add.rs)0
-rw-r--r--ipfs-api-prelude/src/request/bitswap.rs (renamed from ipfs-api/src/request/bitswap.rs)2
-rw-r--r--ipfs-api-prelude/src/request/block.rs (renamed from ipfs-api/src/request/block.rs)2
-rw-r--r--ipfs-api-prelude/src/request/bootstrap.rs (renamed from ipfs-api/src/request/bootstrap.rs)0
-rw-r--r--ipfs-api-prelude/src/request/cat.rs (renamed from ipfs-api/src/request/cat.rs)2
-rw-r--r--ipfs-api-prelude/src/request/commands.rs (renamed from ipfs-api/src/request/commands.rs)0
-rw-r--r--ipfs-api-prelude/src/request/config.rs (renamed from ipfs-api/src/request/config.rs)2
-rw-r--r--ipfs-api-prelude/src/request/dag.rs (renamed from ipfs-api/src/request/dag.rs)2
-rw-r--r--ipfs-api-prelude/src/request/dht.rs (renamed from ipfs-api/src/request/dht.rs)2
-rw-r--r--ipfs-api-prelude/src/request/diag.rs (renamed from ipfs-api/src/request/diag.rs)2
-rw-r--r--ipfs-api-prelude/src/request/dns.rs (renamed from ipfs-api/src/request/dns.rs)2
-rw-r--r--ipfs-api-prelude/src/request/file.rs (renamed from ipfs-api/src/request/file.rs)2
-rw-r--r--ipfs-api-prelude/src/request/files.rs (renamed from ipfs-api/src/request/files.rs)2
-rw-r--r--ipfs-api-prelude/src/request/filestore.rs (renamed from ipfs-api/src/request/filestore.rs)2
-rw-r--r--ipfs-api-prelude/src/request/get.rs (renamed from ipfs-api/src/request/get.rs)2
-rw-r--r--ipfs-api-prelude/src/request/id.rs (renamed from ipfs-api/src/request/id.rs)2
-rw-r--r--ipfs-api-prelude/src/request/key.rs (renamed from ipfs-api/src/request/key.rs)2
-rw-r--r--ipfs-api-prelude/src/request/log.rs (renamed from ipfs-api/src/request/log.rs)2
-rw-r--r--ipfs-api-prelude/src/request/ls.rs (renamed from ipfs-api/src/request/ls.rs)2
-rw-r--r--ipfs-api-prelude/src/request/mod.rs (renamed from ipfs-api/src/request/mod.rs)23
-rw-r--r--ipfs-api-prelude/src/request/name.rs (renamed from ipfs-api/src/request/name.rs)2
-rw-r--r--ipfs-api-prelude/src/request/object.rs (renamed from ipfs-api/src/request/object.rs)2
-rw-r--r--ipfs-api-prelude/src/request/pin.rs (renamed from ipfs-api/src/request/pin.rs)2
-rw-r--r--ipfs-api-prelude/src/request/ping.rs (renamed from ipfs-api/src/request/ping.rs)2
-rw-r--r--ipfs-api-prelude/src/request/pubsub.rs (renamed from ipfs-api/src/request/pubsub.rs)2
-rw-r--r--ipfs-api-prelude/src/request/refs.rs (renamed from ipfs-api/src/request/refs.rs)0
-rw-r--r--ipfs-api-prelude/src/request/shutdown.rs (renamed from ipfs-api/src/request/shutdown.rs)0
-rw-r--r--ipfs-api-prelude/src/request/stats.rs (renamed from ipfs-api/src/request/stats.rs)0
-rw-r--r--ipfs-api-prelude/src/request/swarm.rs (renamed from ipfs-api/src/request/swarm.rs)0
-rw-r--r--ipfs-api-prelude/src/request/tar.rs (renamed from ipfs-api/src/request/tar.rs)2
-rw-r--r--ipfs-api-prelude/src/request/version.rs (renamed from ipfs-api/src/request/version.rs)0
-rw-r--r--ipfs-api-prelude/src/response/add.rs (renamed from ipfs-api/src/response/add.rs)0
-rw-r--r--ipfs-api-prelude/src/response/bitswap.rs (renamed from ipfs-api/src/response/bitswap.rs)0
-rw-r--r--ipfs-api-prelude/src/response/block.rs (renamed from ipfs-api/src/response/block.rs)0
-rw-r--r--ipfs-api-prelude/src/response/bootstrap.rs (renamed from ipfs-api/src/response/bootstrap.rs)0
-rw-r--r--ipfs-api-prelude/src/response/commands.rs (renamed from ipfs-api/src/response/commands.rs)0
-rw-r--r--ipfs-api-prelude/src/response/config.rs (renamed from ipfs-api/src/response/config.rs)0
-rw-r--r--ipfs-api-prelude/src/response/dag.rs (renamed from ipfs-api/src/response/dag.rs)0
-rw-r--r--ipfs-api-prelude/src/response/dht.rs (renamed from ipfs-api/src/response/dht.rs)0
-rw-r--r--ipfs-api-prelude/src/response/diag.rs (renamed from ipfs-api/src/response/diag.rs)0
-rw-r--r--ipfs-api-prelude/src/response/dns.rs (renamed from ipfs-api/src/response/dns.rs)0
-rw-r--r--ipfs-api-prelude/src/response/error.rs23
-rw-r--r--ipfs-api-prelude/src/response/file.rs (renamed from ipfs-api/src/response/file.rs)0
-rw-r--r--ipfs-api-prelude/src/response/files.rs (renamed from ipfs-api/src/response/files.rs)0
-rw-r--r--ipfs-api-prelude/src/response/filestore.rs (renamed from ipfs-api/src/response/filestore.rs)0
-rw-r--r--ipfs-api-prelude/src/response/id.rs (renamed from ipfs-api/src/response/id.rs)0
-rw-r--r--ipfs-api-prelude/src/response/key.rs (renamed from ipfs-api/src/response/key.rs)0
-rw-r--r--ipfs-api-prelude/src/response/log.rs (renamed from ipfs-api/src/response/log.rs)0
-rw-r--r--ipfs-api-prelude/src/response/ls.rs (renamed from ipfs-api/src/response/ls.rs)0
-rw-r--r--ipfs-api-prelude/src/response/mod.rs (renamed from ipfs-api/src/response/mod.rs)0
-rw-r--r--ipfs-api-prelude/src/response/mount.rs (renamed from ipfs-api/src/response/mount.rs)0
-rw-r--r--ipfs-api-prelude/src/response/name.rs (renamed from ipfs-api/src/response/name.rs)0
-rw-r--r--ipfs-api-prelude/src/response/object.rs (renamed from ipfs-api/src/response/object.rs)0
-rw-r--r--ipfs-api-prelude/src/response/pin.rs (renamed from ipfs-api/src/response/pin.rs)0
-rw-r--r--ipfs-api-prelude/src/response/ping.rs (renamed from ipfs-api/src/response/ping.rs)0
-rw-r--r--ipfs-api-prelude/src/response/pubsub.rs (renamed from ipfs-api/src/response/pubsub.rs)0
-rw-r--r--ipfs-api-prelude/src/response/refs.rs (renamed from ipfs-api/src/response/refs.rs)0
-rw-r--r--ipfs-api-prelude/src/response/repo.rs (renamed from ipfs-api/src/response/repo.rs)0
-rw-r--r--ipfs-api-prelude/src/response/resolve.rs (renamed from ipfs-api/src/response/resolve.rs)0
-rw-r--r--ipfs-api-prelude/src/response/serde.rs (renamed from ipfs-api/src/response/serde.rs)0
-rw-r--r--ipfs-api-prelude/src/response/shutdown.rs (renamed from ipfs-api/src/response/shutdown.rs)0
-rw-r--r--ipfs-api-prelude/src/response/stats.rs (renamed from ipfs-api/src/response/stats.rs)0
-rw-r--r--ipfs-api-prelude/src/response/swarm.rs (renamed from ipfs-api/src/response/swarm.rs)0
-rw-r--r--ipfs-api-prelude/src/response/tar.rs (renamed from ipfs-api/src/response/tar.rs)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_bitswap_stat_0.json (renamed from ipfs-api/src/response/tests/v0_bitswap_stat_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_block_stat_0.json (renamed from ipfs-api/src/response/tests/v0_block_stat_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_bootstrap_list_0.json (renamed from ipfs-api/src/response/tests/v0_bootstrap_list_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_commands_0.json (renamed from ipfs-api/src/response/tests/v0_commands_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_dag_get_0.json (renamed from ipfs-api/src/response/tests/v0_dag_get_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_file_ls_0.json (renamed from ipfs-api/src/response/tests/v0_file_ls_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_file_ls_1.json (renamed from ipfs-api/src/response/tests/v0_file_ls_1.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_files_ls_0.json (renamed from ipfs-api/src/response/tests/v0_files_ls_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_files_stat_0.json (renamed from ipfs-api/src/response/tests/v0_files_stat_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_id_0.json (renamed from ipfs-api/src/response/tests/v0_id_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_key_gen_0.json (renamed from ipfs-api/src/response/tests/v0_key_gen_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_key_list_0.json (renamed from ipfs-api/src/response/tests/v0_key_list_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_key_rename_0.json (renamed from ipfs-api/src/response/tests/v0_key_rename_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_key_rm_0.json (renamed from ipfs-api/src/response/tests/v0_key_rm_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_log_ls_0.json (renamed from ipfs-api/src/response/tests/v0_log_ls_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_ls_0.json (renamed from ipfs-api/src/response/tests/v0_ls_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_ls_1.json (renamed from ipfs-api/src/response/tests/v0_ls_1.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_mount_0.json (renamed from ipfs-api/src/response/tests/v0_mount_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_name_resolve_0.json (renamed from ipfs-api/src/response/tests/v0_name_resolve_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_object_diff_0.json (renamed from ipfs-api/src/response/tests/v0_object_diff_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_object_links_0.json (renamed from ipfs-api/src/response/tests/v0_object_links_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_object_stat_0.json (renamed from ipfs-api/src/response/tests/v0_object_stat_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_pin_add_0.json (renamed from ipfs-api/src/response/tests/v0_pin_add_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_pin_ls_0.json (renamed from ipfs-api/src/response/tests/v0_pin_ls_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_ping_0.json (renamed from ipfs-api/src/response/tests/v0_ping_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_ping_1.json (renamed from ipfs-api/src/response/tests/v0_ping_1.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_ping_2.json (renamed from ipfs-api/src/response/tests/v0_ping_2.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_pubsub_ls_0.json (renamed from ipfs-api/src/response/tests/v0_pubsub_ls_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_pubsub_ls_1.json (renamed from ipfs-api/src/response/tests/v0_pubsub_ls_1.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_pubsub_peers_0.json (renamed from ipfs-api/src/response/tests/v0_pubsub_peers_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_pubsub_sub_0.json (renamed from ipfs-api/src/response/tests/v0_pubsub_sub_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_pubsub_sub_1.json (renamed from ipfs-api/src/response/tests/v0_pubsub_sub_1.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_refs_local_0.json (renamed from ipfs-api/src/response/tests/v0_refs_local_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_repo_gc_0.json (renamed from ipfs-api/src/response/tests/v0_repo_gc_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_repo_stat_0.json (renamed from ipfs-api/src/response/tests/v0_repo_stat_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_repo_verify_0.json (renamed from ipfs-api/src/response/tests/v0_repo_verify_0.json)0
-rw-r--r--ipfs-api-prelude/src/response/tests/v0_repo_verify_1.json (renamed from ipfs-api/src/response/tests/v0_repo_verify_1.json)0