├── packages ├── axum │ └── axum-v0.4.5 │ │ ├── .clippy.toml │ │ ├── axum-debug │ │ └── tests │ │ │ ├── fail │ │ │ ├── .gitkeep │ │ │ ├── not_a_function.rs │ │ │ ├── not_async.rs │ │ │ ├── generics.rs │ │ │ ├── invalid_attrs.rs │ │ │ ├── not_a_function.stderr │ │ │ ├── not_async.stderr │ │ │ ├── argument_not_extractor.rs │ │ │ ├── invalid_attrs.stderr │ │ │ ├── wrong_return_type.rs │ │ │ ├── not_send.rs │ │ │ ├── extract_self_ref.stderr │ │ │ ├── extract_self_mut.stderr │ │ │ ├── argument_not_extractor.stderr │ │ │ ├── too_many_extractors.stderr │ │ │ └── generics.stderr │ │ │ └── pass │ │ │ ├── multiple_extractors.rs │ │ │ ├── associated_fn_without_self.rs │ │ │ ├── ready.rs │ │ │ ├── mut_extractor.rs │ │ │ ├── impl_future.rs │ │ │ ├── impl_into_response.rs │ │ │ ├── different_request_body_type.rs │ │ │ └── returns_self.rs │ │ ├── .gitignore │ │ ├── examples │ │ ├── sse │ │ │ ├── assets │ │ │ │ ├── index.html │ │ │ │ └── script.js │ │ │ └── Cargo.toml │ │ ├── templates │ │ │ ├── templates │ │ │ │ └── hello.html │ │ │ └── Cargo.toml │ │ ├── websockets │ │ │ ├── assets │ │ │ │ ├── index.html │ │ │ │ └── script.js │ │ │ └── Cargo.toml │ │ ├── hello-world │ │ │ └── Cargo.toml │ │ ├── graceful-shutdown │ │ │ └── Cargo.toml │ │ ├── README.md │ │ ├── cors │ │ │ └── Cargo.toml │ │ ├── routes-and-handlers-close-together │ │ │ └── Cargo.toml │ │ ├── versioning │ │ │ └── Cargo.toml │ │ ├── reverse-proxy │ │ │ └── Cargo.toml │ │ ├── form │ │ │ └── Cargo.toml │ │ ├── async-graphql │ │ │ └── Cargo.toml │ │ ├── tls-rustls │ │ │ └── Cargo.toml │ │ ├── global-404-handler │ │ │ └── Cargo.toml │ │ ├── readme │ │ │ └── Cargo.toml │ │ ├── chat │ │ │ └── Cargo.toml │ │ ├── query-params-with-empty-strings │ │ │ └── Cargo.toml │ │ ├── static-file-server │ │ │ └── Cargo.toml │ │ ├── tracing-aka-logging │ │ │ └── Cargo.toml │ │ ├── tokio-postgres │ │ │ └── Cargo.toml │ │ ├── multipart-form │ │ │ └── Cargo.toml │ │ ├── customize-path-rejection │ │ │ └── Cargo.toml │ │ ├── http-proxy │ │ │ └── Cargo.toml │ │ ├── customize-extractor-error │ │ │ └── Cargo.toml │ │ ├── prometheus-metrics │ │ │ └── Cargo.toml │ │ ├── unix-domain-socket │ │ │ └── Cargo.toml │ │ └── jwt │ │ │ └── Cargo.toml │ │ ├── Cargo.toml │ │ ├── axum-extra │ │ └── src │ │ │ ├── middleware │ │ │ └── mod.rs │ │ │ ├── response │ │ │ └── mod.rs │ │ │ └── extract │ │ │ └── mod.rs │ │ ├── .github │ │ └── workflows │ │ │ └── patch.toml │ │ └── axum │ │ └── src │ │ ├── docs │ │ └── handlers_intro.md │ │ ├── handler │ │ └── future.rs │ │ └── body │ │ └── mod.rs ├── tokio │ └── tokio-1.14.1 │ │ ├── .clippy.toml │ │ ├── .gitignore │ │ ├── tokio-util │ │ ├── src │ │ │ ├── sync │ │ │ │ ├── tests │ │ │ │ │ └── mod.rs │ │ │ │ └── mod.rs │ │ │ ├── loom.rs │ │ │ └── udp │ │ │ │ └── mod.rs │ │ ├── tests │ │ │ └── _require_full.rs │ │ └── README.md │ │ ├── tests-build │ │ ├── src │ │ │ └── lib.rs │ │ ├── tests │ │ │ ├── fail │ │ │ │ ├── macros_core_no_default.rs │ │ │ │ ├── macros_dead_code.rs │ │ │ │ ├── macros_dead_code.stderr │ │ │ │ └── macros_core_no_default.stderr │ │ │ ├── pass │ │ │ │ ├── macros_main_return.rs │ │ │ │ ├── macros_main_loop.rs │ │ │ │ └── forward_args_and_output.rs │ │ │ └── macros_clippy.rs │ │ ├── README.md │ │ └── Cargo.toml │ │ ├── tokio │ │ ├── src │ │ │ ├── net │ │ │ │ ├── unix │ │ │ │ │ └── datagram │ │ │ │ │ │ └── mod.rs │ │ │ │ ├── windows │ │ │ │ │ └── mod.rs │ │ │ │ └── tcp │ │ │ │ │ └── mod.rs │ │ │ ├── sync │ │ │ │ ├── task │ │ │ │ │ └── mod.rs │ │ │ │ └── tests │ │ │ │ │ └── mod.rs │ │ │ ├── macros │ │ │ │ ├── thread_local.rs │ │ │ │ ├── ready.rs │ │ │ │ ├── support.rs │ │ │ │ └── loom.rs │ │ │ ├── future │ │ │ │ ├── trace.rs │ │ │ │ └── block_on.rs │ │ │ ├── process │ │ │ │ └── kill.rs │ │ │ ├── signal │ │ │ │ └── windows │ │ │ │ │ └── stub.rs │ │ │ ├── loom │ │ │ │ └── mod.rs │ │ │ └── fs │ │ │ │ ├── remove_dir.rs │ │ │ │ └── read_link.rs │ │ └── tests │ │ │ ├── _require_full.rs │ │ │ ├── support │ │ │ └── signal.rs │ │ │ ├── io_async_read.rs │ │ │ ├── macros_pin.rs │ │ │ ├── signal_no_rt.rs │ │ │ ├── process_arg0.rs │ │ │ ├── net_bind_resource.rs │ │ │ ├── io_read_exact.rs │ │ │ └── io_chain.rs │ │ ├── .github │ │ ├── FUNDING.yml │ │ ├── labeler.yml │ │ ├── workflows │ │ │ └── labeler.yml │ │ └── ISSUE_TEMPLATE │ │ │ └── question.md │ │ ├── tests-integration │ │ ├── README.md │ │ ├── src │ │ │ ├── lib.rs │ │ │ └── bin │ │ │ │ └── test-process-signal.rs │ │ └── tests │ │ │ └── macros_pin.rs │ │ ├── .cargo │ │ └── audit.toml │ │ ├── Cargo.toml │ │ ├── tokio-stream │ │ └── tests │ │ │ ├── stream_empty.rs │ │ │ ├── stream_once.rs │ │ │ ├── stream_iter.rs │ │ │ ├── stream_pending.rs │ │ │ └── support │ │ │ └── mpsc.rs │ │ ├── CODE_OF_CONDUCT.md │ │ ├── tokio-macros │ │ └── README.md │ │ ├── tokio-test │ │ └── README.md │ │ └── stress-test │ │ └── Cargo.toml ├── rocket │ └── rocket-0.5.0-rc.2 │ │ ├── .gitattributes │ │ ├── examples │ │ ├── todo │ │ │ ├── db │ │ │ │ └── DB_LIVES_HERE │ │ │ ├── migrations │ │ │ │ ├── .gitkeep │ │ │ │ └── 20160720150332_create_tasks_table │ │ │ │ │ ├── down.sql │ │ │ │ │ └── up.sql │ │ │ ├── Rocket.toml │ │ │ ├── static │ │ │ │ └── images │ │ │ │ │ └── favicon.png │ │ │ └── README.md │ │ ├── databases │ │ │ ├── db │ │ │ │ ├── diesel │ │ │ │ │ └── migrations │ │ │ │ │ │ ├── .gitkeep │ │ │ │ │ │ └── 20210329150332_create_posts_table │ │ │ │ │ │ ├── down.sql │ │ │ │ │ │ └── up.sql │ │ │ │ └── sqlx │ │ │ │ │ └── migrations │ │ │ │ │ └── 20210331024424_create-posts-table.sql │ │ │ ├── Rocket.toml │ │ │ └── README.md │ │ ├── fairings │ │ │ ├── Rocket.toml │ │ │ └── Cargo.toml │ │ ├── manual-routing │ │ │ ├── Rocket.toml │ │ │ └── Cargo.toml │ │ ├── static-files │ │ │ ├── static │ │ │ │ ├── hidden │ │ │ │ │ ├── hi.txt │ │ │ │ │ └── index.html │ │ │ │ ├── rocket-icon.jpg │ │ │ │ └── index.html │ │ │ └── Cargo.toml │ │ ├── templating │ │ │ ├── Rocket.toml │ │ │ ├── templates │ │ │ │ ├── hbs │ │ │ │ │ ├── footer.html.hbs │ │ │ │ │ ├── nav.html.hbs │ │ │ │ │ ├── layout.html.hbs │ │ │ │ │ └── error │ │ │ │ │ │ └── 404.html.hbs │ │ │ │ └── tera │ │ │ │ │ ├── nav.html.tera │ │ │ │ │ ├── error │ │ │ │ │ └── 404.html.tera │ │ │ │ │ ├── base.html.tera │ │ │ │ │ └── index.html.tera │ │ │ └── Cargo.toml │ │ ├── forms │ │ │ ├── Rocket.toml │ │ │ └── Cargo.toml │ │ ├── cookies │ │ │ ├── Rocket.toml │ │ │ └── Cargo.toml │ │ ├── tls │ │ │ ├── private │ │ │ │ ├── ed25519.p12 │ │ │ │ ├── rsa_sha256.p12 │ │ │ │ ├── ed25519_key.pem │ │ │ │ ├── ecdsa_nistp256_sha256.p12 │ │ │ │ ├── ecdsa_nistp384_sha384.p12 │ │ │ │ ├── ecdsa_nistp256_sha256_key_pkcs8.pem │ │ │ │ └── ecdsa_nistp384_sha384_key_pkcs8.pem │ │ │ ├── Cargo.toml │ │ │ └── src │ │ │ │ └── tests.rs │ │ ├── hello │ │ │ └── Cargo.toml │ │ ├── testing │ │ │ └── Cargo.toml │ │ ├── error-handling │ │ │ └── Cargo.toml │ │ ├── state │ │ │ ├── Cargo.toml │ │ │ └── src │ │ │ │ └── main.rs │ │ ├── config │ │ │ └── Cargo.toml │ │ ├── pastebin │ │ │ └── Cargo.toml │ │ ├── responders │ │ │ └── Cargo.toml │ │ ├── serialization │ │ │ ├── Cargo.toml │ │ │ └── src │ │ │ │ └── main.rs │ │ ├── chat │ │ │ ├── Cargo.toml │ │ │ └── static │ │ │ │ └── reset.css │ │ └── Cargo.toml │ │ ├── core │ │ ├── lib │ │ │ ├── tests │ │ │ │ ├── static │ │ │ │ │ ├── .hidden │ │ │ │ │ ├── inner │ │ │ │ │ │ ├── .hideme │ │ │ │ │ │ ├── goodbye │ │ │ │ │ │ └── index.html │ │ │ │ │ ├── other │ │ │ │ │ │ └── hello.txt │ │ │ │ │ └── index.html │ │ │ │ ├── twice_managed_state.rs │ │ │ │ ├── mount_point.rs │ │ │ │ ├── local-client-access-runtime-in-drop.rs │ │ │ │ └── typed-uri-docs-redef-issue-1373.rs │ │ │ ├── fuzz │ │ │ │ ├── corpus │ │ │ │ │ └── uri-parsing │ │ │ │ │ │ ├── asterisk.seed │ │ │ │ │ │ ├── authority.seed │ │ │ │ │ │ ├── origin.seed │ │ │ │ │ │ ├── absolute.seed │ │ │ │ │ │ └── reference.seed │ │ │ │ ├── .gitignore │ │ │ │ └── README.md │ │ │ ├── src │ │ │ │ ├── router │ │ │ │ │ └── mod.rs │ │ │ │ ├── catcher │ │ │ │ │ └── mod.rs │ │ │ │ ├── form │ │ │ │ │ └── name │ │ │ │ │ │ └── mod.rs │ │ │ │ ├── route │ │ │ │ │ └── mod.rs │ │ │ │ └── fs │ │ │ │ │ └── mod.rs │ │ │ └── build.rs │ │ ├── codegen │ │ │ ├── src │ │ │ │ ├── attribute │ │ │ │ │ └── mod.rs │ │ │ │ └── derive │ │ │ │ │ └── mod.rs │ │ │ └── tests │ │ │ │ ├── ui-fail │ │ │ │ ├── routes.rs │ │ │ │ ├── catchers.rs │ │ │ │ ├── bad-ignored-segments.rs │ │ │ │ ├── from_form_type_errors.rs │ │ │ │ └── catch_type_errors.rs │ │ │ │ ├── ui-fail-nightly │ │ │ │ ├── routes.rs │ │ │ │ ├── catchers.rs │ │ │ │ ├── bad-ignored-segments.rs │ │ │ │ ├── from_form_type_errors.rs │ │ │ │ └── catch_type_errors.rs │ │ │ │ ├── ui-fail-stable │ │ │ │ ├── routes.rs │ │ │ │ ├── catchers.rs │ │ │ │ ├── route-warnings.stderr │ │ │ │ ├── bad-ignored-segments.rs │ │ │ │ ├── from_form_type_errors.rs │ │ │ │ └── catch_type_errors.rs │ │ │ │ └── ui-fail.rs │ │ └── http │ │ │ └── src │ │ │ ├── tls │ │ │ └── mod.rs │ │ │ ├── parse │ │ │ ├── mod.rs │ │ │ └── checkers.rs │ │ │ ├── uri │ │ │ └── fmt │ │ │ │ └── mod.rs │ │ │ └── header │ │ │ └── mod.rs │ │ ├── contrib │ │ ├── dyn_templates │ │ │ └── tests │ │ │ │ └── templates │ │ │ │ ├── hbs │ │ │ │ ├── reload.txt.hbs │ │ │ │ ├── common │ │ │ │ │ ├── footer.html.hbs │ │ │ │ │ └── header.html.hbs │ │ │ │ └── test.html.hbs │ │ │ │ └── tera │ │ │ │ ├── html_test.html.tera │ │ │ │ ├── txt_test.txt.tera │ │ │ │ └── base.txt.tera │ │ ├── sync_db_pools │ │ │ └── codegen │ │ │ │ └── tests │ │ │ │ ├── ui-fail │ │ │ │ └── database-types.rs │ │ │ │ ├── ui-fail-stable │ │ │ │ └── database-types.rs │ │ │ │ ├── ui-fail-nightly │ │ │ │ └── database-types.rs │ │ │ │ └── ui-fail.rs │ │ └── db_pools │ │ │ └── codegen │ │ │ └── tests │ │ │ ├── ui-fail │ │ │ └── database-types.rs │ │ │ ├── ui-fail-stable │ │ │ └── database-types.rs │ │ │ ├── ui-fail-nightly │ │ │ └── database-types.rs │ │ │ └── ui-fail.rs │ │ ├── benchmarks │ │ ├── src │ │ │ └── bench.rs │ │ └── Cargo.toml │ │ ├── .github │ │ └── ISSUE_TEMPLATE │ │ │ └── config.yml │ │ └── Cargo.toml └── substrate │ └── substrate-monthly-2022-02 │ ├── .gitattributes │ ├── frame │ ├── gilt │ │ └── README.md │ ├── system │ │ ├── benchmarking │ │ │ └── README.md │ │ └── rpc │ │ │ └── runtime-api │ │ │ └── README.md │ ├── bags-list │ │ └── fuzzer │ │ │ └── .gitignore │ ├── support │ │ ├── README.md │ │ └── test │ │ │ └── tests │ │ │ ├── pallet_ui │ │ │ ├── mod_not_inlined.rs │ │ │ ├── attr_non_empty.rs │ │ │ ├── event_wrong_item_name.stderr │ │ │ ├── error_wrong_item.stderr │ │ │ ├── error_wrong_item_name.stderr │ │ │ ├── event_wrong_item.stderr │ │ │ ├── storage_wrong_item.stderr │ │ │ ├── duplicate_call_attr.stderr │ │ │ ├── call_no_origin.stderr │ │ │ ├── call_invalid_const.stderr │ │ │ ├── error_no_fieldless.stderr │ │ │ ├── trait_invalid_item.stderr │ │ │ ├── inherent_invalid_item.stderr │ │ │ ├── duplicate_store_attr.stderr │ │ │ ├── genesis_wrong_name.stderr │ │ │ ├── trait_constant_invalid_bound.stderr │ │ │ ├── call_no_return.stderr │ │ │ ├── storage_multiple_getters.stderr │ │ │ ├── type_value_no_return.stderr │ │ │ ├── storage_invalid_rename_value.stderr │ │ │ ├── storage_multiple_renames.stderr │ │ │ ├── type_value_invalid_item.stderr │ │ │ ├── call_invalid_vis.stderr │ │ │ ├── error_where_clause.stderr │ │ │ ├── storage_invalid_attribute.stderr │ │ │ ├── trait_constant_invalid_bound_lifetime.stderr │ │ │ ├── call_invalid_vis_2.stderr │ │ │ ├── event_type_invalid_bound.stderr │ │ │ ├── attr_non_empty.stderr │ │ │ ├── call_missing_weight.stderr │ │ │ ├── call_invalid_return.stderr │ │ │ ├── storage_value_no_generic.stderr │ │ │ ├── type_value_error_in_block.stderr │ │ │ ├── storage_not_storage_type.stderr │ │ │ ├── genesis_inconsistent_build_config.stderr │ │ │ ├── event_type_invalid_bound_2.stderr │ │ │ ├── call_invalid_origin_type.stderr │ │ │ ├── storage_value_generic_named_and_unnamed.stderr │ │ │ ├── trait_no_supertrait.stderr │ │ │ ├── hooks_invalid_item.rs │ │ │ ├── store_trait_leak_private.stderr │ │ │ └── mod_not_inlined.stderr │ │ │ ├── construct_runtime_ui │ │ │ ├── missing_where_block.rs │ │ │ ├── invalid_token_after_name.stderr │ │ │ ├── no_comma_after_where.stderr │ │ │ ├── missing_module_instance.stderr │ │ │ ├── empty_pallet_path.stderr │ │ │ ├── missing_where_block.stderr │ │ │ ├── invalid_where_param.stderr │ │ │ ├── more_than_256_modules.stderr │ │ │ ├── missing_where_param.rs │ │ │ ├── abundant_where_param.stderr │ │ │ ├── missing_where_param.stderr │ │ │ ├── invalid_module_details.stderr │ │ │ ├── invalid_token_after_module.stderr │ │ │ ├── missing_system_module.stderr │ │ │ ├── abundant_where_param.rs │ │ │ ├── missing_system_module.rs │ │ │ ├── empty_pallet_path.rs │ │ │ ├── exclude_missspell.stderr │ │ │ ├── invalid_module_entry.stderr │ │ │ ├── invalid_where_param.rs │ │ │ ├── duplicate_exclude.stderr │ │ │ ├── invalid_token_after_name.rs │ │ │ ├── invalid_module_details_keyword.stderr │ │ │ ├── no_comma_after_where.rs │ │ │ ├── double_module_parts.stderr │ │ │ ├── invalid_module_details.rs │ │ │ ├── invalid_token_after_module.rs │ │ │ ├── missing_module_instance.rs │ │ │ ├── invalid_module_details_keyword.rs │ │ │ ├── exclude_missspell.rs │ │ │ ├── duplicate_exclude.rs │ │ │ ├── conflicting_index.rs │ │ │ ├── missing_event_generic_on_module_with_instance.stderr │ │ │ ├── invalid_module_entry.rs │ │ │ ├── missing_origin_generic_on_module_with_instance.stderr │ │ │ ├── more_than_256_modules.rs │ │ │ ├── generics_in_invalid_module.stderr │ │ │ ├── double_module_parts.rs │ │ │ ├── generics_in_invalid_module.rs │ │ │ ├── missing_event_generic_on_module_with_instance.rs │ │ │ ├── conflicting_module_name.rs │ │ │ ├── missing_origin_generic_on_module_with_instance.rs │ │ │ ├── conflicting_module_name.stderr │ │ │ └── conflicting_index_2.rs │ │ │ ├── derive_no_bound_ui │ │ │ ├── eq.rs │ │ │ ├── clone.rs │ │ │ ├── debug.rs │ │ │ ├── default.rs │ │ │ ├── partial_eq.rs │ │ │ ├── partial_eq.stderr │ │ │ ├── clone.stderr │ │ │ └── debug.stderr │ │ │ ├── decl_storage_ui │ │ │ ├── config_duplicate.stderr │ │ │ ├── get_duplicate.stderr │ │ │ └── config_get_duplicate.stderr │ │ │ └── decl_module_ui │ │ │ ├── reserved_keyword_two_times_integrity_test.rs │ │ │ └── reserved_keyword_two_times_on_initialize.rs │ ├── offences │ │ ├── benchmarking │ │ │ └── README.md │ │ └── README.md │ ├── session │ │ └── benchmarking │ │ │ └── README.md │ ├── contracts │ │ ├── rpc │ │ │ ├── README.md │ │ │ └── runtime-api │ │ │ │ └── README.md │ │ ├── common │ │ │ └── README.md │ │ ├── fixtures │ │ │ ├── dummy.wat │ │ │ ├── run_out_of_gas.wat │ │ │ └── invalid_import.wat │ │ └── benchmarks │ │ │ ├── ink_erc20.wasm │ │ │ ├── solang_erc20.wasm │ │ │ └── ink_erc20_test.wasm │ ├── transaction-payment │ │ └── rpc │ │ │ ├── README.md │ │ │ └── runtime-api │ │ │ └── README.md │ ├── authorship │ │ └── README.md │ ├── indices │ │ └── README.md │ ├── babe │ │ └── README.md │ ├── authority-discovery │ │ └── README.md │ ├── membership │ │ └── README.md │ └── examples │ │ └── parallel │ │ └── README.md │ ├── utils │ ├── frame │ │ ├── benchmarking-cli │ │ │ └── README.md │ │ ├── frame-utilities-cli │ │ │ └── README.md │ │ ├── rpc │ │ │ ├── system │ │ │ │ └── README.md │ │ │ └── support │ │ │ │ └── README.md │ │ └── remote-externalities │ │ │ └── test_data │ │ │ └── proxy_test.top │ ├── build-script-utils │ │ └── README.md │ └── fork-tree │ │ └── README.md │ ├── bin │ ├── node-template │ │ ├── pallets │ │ │ └── template │ │ │ │ └── README.md │ │ ├── runtime │ │ │ └── build.rs │ │ ├── node │ │ │ ├── build.rs │ │ │ └── src │ │ │ │ └── main.rs │ │ ├── .editorconfig │ │ └── scripts │ │ │ ├── docker_run.sh │ │ │ └── init.sh │ └── utils │ │ └── chain-spec-builder │ │ └── README.md │ ├── primitives │ ├── authorship │ │ └── README.md │ ├── npos-elections │ │ ├── fuzzer │ │ │ └── .gitignore │ │ └── solution-type │ │ │ └── tests │ │ │ └── ui │ │ │ └── fail │ │ │ ├── missing_voter.stderr │ │ │ ├── missing_target.stderr │ │ │ ├── no_annotations.stderr │ │ │ ├── missing_accuracy.stderr │ │ │ ├── swap_voter_target.stderr │ │ │ ├── wrong_attribute.stderr │ │ │ ├── no_annotations.rs │ │ │ ├── missing_target.rs │ │ │ ├── missing_voter.rs │ │ │ ├── missing_accuracy.rs │ │ │ ├── swap_voter_target.rs │ │ │ └── wrong_attribute.rs │ ├── consensus │ │ ├── aura │ │ │ └── README.md │ │ ├── babe │ │ │ └── README.md │ │ ├── vrf │ │ │ └── README.md │ │ ├── slots │ │ │ └── README.md │ │ ├── pow │ │ │ └── README.md │ │ └── common │ │ │ └── README.md │ ├── block-builder │ │ └── README.md │ ├── io │ │ └── README.md │ ├── rpc │ │ └── README.md │ ├── runtime │ │ └── README.md │ ├── session │ │ └── README.md │ ├── blockchain │ │ └── README.md │ ├── offchain │ │ └── README.md │ ├── state-machine │ │ └── README.md │ ├── storage │ │ └── README.md │ ├── tasks │ │ └── README.md │ ├── authority-discovery │ │ └── README.md │ ├── keyring │ │ └── README.md │ ├── timestamp │ │ └── README.md │ ├── transaction-pool │ │ └── README.md │ ├── arithmetic │ │ └── README.md │ ├── database │ │ └── README.md │ ├── finality-grandpa │ │ └── README.md │ ├── wasm-interface │ │ └── README.md │ ├── maybe-compressed-blob │ │ └── README.md │ ├── trie │ │ ├── README.md │ │ └── test-res │ │ │ ├── proof │ │ │ ├── storage_root │ │ │ ├── valid-delta-order │ │ │ └── invalid-delta-order │ ├── version │ │ └── README.md │ ├── application-crypto │ │ └── README.md │ ├── api │ │ └── test │ │ │ └── tests │ │ │ └── ui │ │ │ ├── adding_self_parameter.rs │ │ │ ├── declaring_old_block.rs │ │ │ ├── declaring_own_block_with_different_name.rs │ │ │ ├── invalid_api_version.rs │ │ │ ├── invalid_api_version_2.rs │ │ │ ├── invalid_api_version_3.rs │ │ │ ├── adding_self_parameter.stderr │ │ │ ├── no_default_implementation.rs │ │ │ ├── invalid_api_version.stderr │ │ │ ├── missing_block_generic_parameter.stderr │ │ │ ├── changed_in_unknown_version.stderr │ │ │ ├── invalid_api_version_3.stderr │ │ │ ├── invalid_api_version_2.stderr │ │ │ ├── missing_path_for_trait.stderr │ │ │ ├── changed_in_no_default_method.stderr │ │ │ ├── impl_two_traits_with_same_name.stderr │ │ │ ├── mock_advanced_missing_blockid.stderr │ │ │ ├── no_default_implementation.stderr │ │ │ ├── empty_impl_runtime_apis_call.stderr │ │ │ ├── declaring_own_block_with_different_name.stderr │ │ │ ├── mock_only_one_block_type.stderr │ │ │ ├── mock_only_one_self_type.stderr │ │ │ └── mock_only_self_reference.rs │ ├── runtime-interface │ │ └── tests │ │ │ └── ui │ │ │ ├── pass_by_enum_with_struct.rs │ │ │ ├── no_method_implementation.rs │ │ │ ├── take_self_by_value.rs │ │ │ ├── no_generic_parameters_trait.rs │ │ │ ├── no_method_implementation.stderr │ │ │ ├── no_generic_parameters_method.rs │ │ │ ├── pass_by_enum_with_value_variant.rs │ │ │ ├── take_self_by_value.stderr │ │ │ ├── no_generic_parameters_trait.stderr │ │ │ ├── no_generic_parameters_method.stderr │ │ │ ├── no_gaps_in_versions.stderr │ │ │ ├── pass_by_inner_with_two_fields.rs │ │ │ ├── no_duplicate_versions.rs │ │ │ ├── no_duplicate_versions.stderr │ │ │ ├── no_gaps_in_versions.rs │ │ │ ├── pass_by_enum_with_struct.stderr │ │ │ ├── pass_by_enum_with_value_variant.stderr │ │ │ └── pass_by_inner_with_two_fields.stderr │ ├── transaction-storage-proof │ │ └── README.md │ ├── std │ │ └── README.md │ ├── serializer │ │ └── README.md │ ├── staking │ │ └── README.md │ ├── externalities │ │ └── README.md │ └── panic-handler │ │ └── README.md │ ├── client │ ├── executor │ │ ├── wasmtime │ │ │ └── README.md │ │ ├── common │ │ │ └── README.md │ │ └── wasmi │ │ │ └── README.md │ ├── cli │ │ ├── README.md │ │ └── README.adoc │ ├── api │ │ └── README.md │ ├── consensus │ │ ├── babe │ │ │ └── rpc │ │ │ │ └── README.md │ │ ├── uncles │ │ │ └── README.md │ │ ├── common │ │ │ └── README.md │ │ ├── epochs │ │ │ └── README.md │ │ ├── manual-seal │ │ │ └── README.md │ │ └── slots │ │ │ └── README.md │ ├── rpc-servers │ │ └── README.md │ ├── finality-grandpa │ │ └── rpc │ │ │ └── README.md │ ├── proposer-metrics │ │ └── README.md │ ├── keystore │ │ └── README.md │ ├── rpc │ │ └── README.md │ ├── informant │ │ └── README.md │ ├── peerset │ │ └── README.md │ ├── rpc-api │ │ └── README.md │ ├── service │ │ └── README.md │ ├── authority-discovery │ │ ├── build.rs │ │ ├── README.md │ │ └── src │ │ │ └── worker │ │ │ └── schema │ │ │ └── dht-v1.proto │ ├── network │ │ └── build.rs │ ├── allocator │ │ └── README.md │ ├── tracing │ │ └── README.md │ └── block-builder │ │ └── README.md │ ├── .dockerignore │ ├── docs │ ├── media │ │ └── sub.gif │ └── Upgrade.md │ ├── .github │ ├── workflows │ │ └── mlc_config.json │ ├── dependabot.yml │ └── allowed-actions.js │ ├── .maintain │ ├── update-deps.sh │ ├── init.sh │ ├── local-docker-test-network │ │ ├── grafana │ │ │ └── provisioning │ │ │ │ └── dashboards │ │ │ │ └── dashboards.yml │ │ └── prometheus │ │ │ └── prometheus.yml │ ├── monitoring │ │ └── grafana-dashboards │ │ │ └── README_dashboard.md │ ├── getgoing.sh │ └── node-template-release.sh │ └── test-utils │ └── tests │ └── ui │ └── too-many-func-parameters.stderr ├── src └── main.rs ├── Cargo.lock ├── docs └── readme.md └── Cargo.toml /packages/axum/axum-v0.4.5/.clippy.toml: -------------------------------------------------------------------------------- 1 | msrv = "1.51" 2 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/.clippy.toml: -------------------------------------------------------------------------------- 1 | msrv = "1.45" 2 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | Cargo.lock 3 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/todo/db/DB_LIVES_HERE: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/todo/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | Cargo.lock 3 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-util/src/sync/tests/mod.rs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | println!("Hello, world!"); 3 | } 4 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/tests/static/.hidden: -------------------------------------------------------------------------------- 1 | Peek-a-boo. 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/tests/static/inner/.hideme: -------------------------------------------------------------------------------- 1 | Oh no! 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/tests/static/other/hello.txt: -------------------------------------------------------------------------------- 1 | Hi! 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/databases/db/diesel/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-util/src/loom.rs: -------------------------------------------------------------------------------- 1 | pub(crate) use std::sync; 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/fuzz/corpus/uri-parsing/asterisk.seed: -------------------------------------------------------------------------------- 1 | * 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/tests/static/inner/goodbye: -------------------------------------------------------------------------------- 1 | Thanks for coming! 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/tests/static/inner/index.html: -------------------------------------------------------------------------------- 1 | Inner index. 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/fairings/Rocket.toml: -------------------------------------------------------------------------------- 1 | [global] 2 | token = 123 3 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/sse/assets/index.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/templates/templates/hello.html: -------------------------------------------------------------------------------- 1 |

Hello, {{ name }}!

2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/dyn_templates/tests/templates/hbs/reload.txt.hbs: -------------------------------------------------------------------------------- 1 | initial -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/manual-routing/Rocket.toml: -------------------------------------------------------------------------------- 1 | [global] 2 | port = 8000 3 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/static-files/static/hidden/hi.txt: -------------------------------------------------------------------------------- 1 | You found me! :o 2 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.gitattributes: -------------------------------------------------------------------------------- 1 | Cargo.lock linguist-generated=true 2 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/gilt/README.md: -------------------------------------------------------------------------------- 1 | 2 | License: Apache-2.0 3 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/websockets/assets/index.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/tests/static/index.html: -------------------------------------------------------------------------------- 1 | Just a file here: index.html. 2 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/system/benchmarking/README.md: -------------------------------------------------------------------------------- 1 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/utils/frame/benchmarking-cli/README.md: -------------------------------------------------------------------------------- 1 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/src/lib.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "tokio")] 2 | pub use tokio; 3 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/dyn_templates/tests/templates/hbs/common/footer.html.hbs: -------------------------------------------------------------------------------- 1 | Done. 2 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/bin/node-template/pallets/template/README.md: -------------------------------------------------------------------------------- 1 | License: Unlicense -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/fuzz/.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | corpus/*/* 3 | artifacts 4 | !*.seed 5 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/templating/Rocket.toml: -------------------------------------------------------------------------------- 1 | [default] 2 | template_dir = "templates" 3 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/fuzz/corpus/uri-parsing/authority.seed: -------------------------------------------------------------------------------- 1 | username:password@some.host:8088 2 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/bags-list/fuzzer/.gitignore: -------------------------------------------------------------------------------- 1 | hfuzz_target 2 | hfuzz_workspace 3 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/dyn_templates/tests/templates/hbs/common/header.html.hbs: -------------------------------------------------------------------------------- 1 | Hello {{ title }}! 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/todo/migrations/20160720150332_create_tasks_table/down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE tasks 2 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-util/src/udp/mod.rs: -------------------------------------------------------------------------------- 1 | //! UDP framing 2 | 3 | mod frame; 4 | pub use frame::UdpFramed; 5 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/net/unix/datagram/mod.rs: -------------------------------------------------------------------------------- 1 | //! Unix datagram types. 2 | 3 | pub(crate) mod socket; 4 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/README.md: -------------------------------------------------------------------------------- 1 | Support code for the runtime. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/authorship/README.md: -------------------------------------------------------------------------------- 1 | Authorship Primitives 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/fuzzer/.gitignore: -------------------------------------------------------------------------------- 1 | hfuzz_target 2 | hfuzz_workspace 3 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [tokio-rs] 4 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/net/windows/mod.rs: -------------------------------------------------------------------------------- 1 | //! Windows specific network types. 2 | 3 | pub mod named_pipe; 4 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/benchmarks/src/bench.rs: -------------------------------------------------------------------------------- 1 | mod routing; 2 | 3 | criterion::criterion_main!(routing::routing); 4 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/fuzz/corpus/uri-parsing/origin.seed: -------------------------------------------------------------------------------- 1 | /first_segment/second_segment/third?optional=query 2 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/executor/wasmtime/README.md: -------------------------------------------------------------------------------- 1 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/consensus/aura/README.md: -------------------------------------------------------------------------------- 1 | Primitives for Aura. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/consensus/babe/README.md: -------------------------------------------------------------------------------- 1 | Primitives for BABE. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-integration/README.md: -------------------------------------------------------------------------------- 1 | Tests that require additional components than just the `tokio` crate. 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/fuzz/corpus/uri-parsing/absolute.seed: -------------------------------------------------------------------------------- 1 | http://user:pass@domain.com:4444/foo/bar?some=query 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/databases/db/diesel/migrations/20210329150332_create_posts_table/down.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE posts; 2 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/forms/Rocket.toml: -------------------------------------------------------------------------------- 1 | [default] 2 | limits.data-form = "2MiB" 3 | template_dir = "templates/" 4 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/templating/templates/hbs/footer.html.hbs: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/bin/utils/chain-spec-builder/README.md: -------------------------------------------------------------------------------- 1 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/block-builder/README.md: -------------------------------------------------------------------------------- 1 | The block builder runtime api. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/io/README.md: -------------------------------------------------------------------------------- 1 | I/O host interface for substrate runtime. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/rpc/README.md: -------------------------------------------------------------------------------- 1 | Substrate RPC primitives and utilities. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/src/attribute/mod.rs: -------------------------------------------------------------------------------- 1 | pub mod catch; 2 | pub mod entry; 3 | pub mod param; 4 | pub mod route; 5 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/offences/benchmarking/README.md: -------------------------------------------------------------------------------- 1 | Offences pallet benchmarking. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime/README.md: -------------------------------------------------------------------------------- 1 | Runtime Modules shared primitive types. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/session/README.md: -------------------------------------------------------------------------------- 1 | Substrate core types around sessions. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/utils/frame/frame-utilities-cli/README.md: -------------------------------------------------------------------------------- 1 | frame-system CLI utilities 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/utils/frame/rpc/system/README.md: -------------------------------------------------------------------------------- 1 | System FRAME specific RPC methods. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.dockerignore: -------------------------------------------------------------------------------- 1 | doc 2 | **target* 3 | .idea/ 4 | Dockerfile 5 | .dockerignore 6 | .local 7 | .env* 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/session/benchmarking/README.md: -------------------------------------------------------------------------------- 1 | Benchmarks for the Session Pallet. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/blockchain/README.md: -------------------------------------------------------------------------------- 1 | Substrate blockchain traits and primitives. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/offchain/README.md: -------------------------------------------------------------------------------- 1 | The Offchain Worker runtime api primitives. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/state-machine/README.md: -------------------------------------------------------------------------------- 1 | Substrate state machine implementation. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/storage/README.md: -------------------------------------------------------------------------------- 1 | Primitive types for storage related stuff. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/tasks/README.md: -------------------------------------------------------------------------------- 1 | Runtime asynchronous, pure computational tasks. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/fuzz/corpus/uri-parsing/reference.seed: -------------------------------------------------------------------------------- 1 | http://user:pass@domain.com:4444/foo/bar?some=query#and-fragment 2 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/cli/README.md: -------------------------------------------------------------------------------- 1 | Substrate CLI library. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/offences/README.md: -------------------------------------------------------------------------------- 1 | # Offences Module 2 | 3 | Tracks reported offences 4 | 5 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/consensus/vrf/README.md: -------------------------------------------------------------------------------- 1 | Primitives for VRF-based consensus engines. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-integration/src/lib.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "full")] 2 | doc_comment::doc_comment!(include_str!("../../README.md")); 3 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/templating/templates/hbs/nav.html.hbs: -------------------------------------------------------------------------------- 1 | Hello | About 2 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/api/README.md: -------------------------------------------------------------------------------- 1 | Substrate client interfaces. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/authority-discovery/README.md: -------------------------------------------------------------------------------- 1 | Runtime Api to help discover authorities. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/consensus/slots/README.md: -------------------------------------------------------------------------------- 1 | Primitives for slots-based consensus engines. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/keyring/README.md: -------------------------------------------------------------------------------- 1 | Support code for the runtime. A set of test accounts. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/timestamp/README.md: -------------------------------------------------------------------------------- 1 | Substrate core types and inherents for timestamps. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/tests/_require_full.rs: -------------------------------------------------------------------------------- 1 | #![cfg(not(feature = "full"))] 2 | compile_error!("run main Tokio tests with `--features full`"); 3 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/not_a_function.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | 3 | #[debug_handler] 4 | struct A; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/not_async.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | 3 | #[debug_handler] 4 | fn handler() {} 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/templating/templates/tera/nav.html.tera: -------------------------------------------------------------------------------- 1 | Hello | About 2 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/consensus/babe/rpc/README.md: -------------------------------------------------------------------------------- 1 | RPC api for babe. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/rpc-servers/README.md: -------------------------------------------------------------------------------- 1 | Substrate RPC servers. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/contracts/rpc/README.md: -------------------------------------------------------------------------------- 1 | Node-specific RPC methods for interaction with contracts. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/consensus/pow/README.md: -------------------------------------------------------------------------------- 1 | Primitives for Substrate Proof-of-Work (PoW) consensus. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/transaction-pool/README.md: -------------------------------------------------------------------------------- 1 | Transaction pool primitives types & Runtime API. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/utils/build-script-utils/README.md: -------------------------------------------------------------------------------- 1 | Crate with utility functions for `build.rs` scripts. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-util/tests/_require_full.rs: -------------------------------------------------------------------------------- 1 | #![cfg(not(feature = "full"))] 2 | compile_error!("run tokio-util tests with `--features full`"); 3 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/finality-grandpa/rpc/README.md: -------------------------------------------------------------------------------- 1 | RPC API for GRANDPA. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/mod_not_inlined.rs: -------------------------------------------------------------------------------- 1 | #[frame_support::pallet] 2 | mod foo; 3 | 4 | fn main() { 5 | } 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/transaction-payment/rpc/README.md: -------------------------------------------------------------------------------- 1 | RPC interface for the transaction payment pallet. 2 | 3 | License: Apache-2.0 4 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/generics.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | 3 | #[debug_handler] 4 | async fn handler() {} 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/cookies/Rocket.toml: -------------------------------------------------------------------------------- 1 | [default] 2 | secret_key = "itlYmFR2vYKrOmFhupMIn/hyB6lYCCTXz4yaQX89XVg=" 3 | template_dir = "templates" 4 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/todo/Rocket.toml: -------------------------------------------------------------------------------- 1 | [default] 2 | template_dir = "static" 3 | 4 | [default.databases.sqlite_database] 5 | url = "db/db.sqlite" 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/cli/README.adoc: -------------------------------------------------------------------------------- 1 | 2 | = Substrate CLI 3 | 4 | Substrate CLI library 5 | 6 | include::doc/shell-completion.adoc[] 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/arithmetic/README.md: -------------------------------------------------------------------------------- 1 | Minimal fixed point arithmetic primitives and types for runtime. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | members = [ 3 | "axum", 4 | "axum-core", 5 | "axum-debug", 6 | "axum-extra", 7 | "examples/*", 8 | ] 9 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/invalid_attrs.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | 3 | #[debug_handler(foo)] 4 | async fn handler() {} 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/not_a_function.stderr: -------------------------------------------------------------------------------- 1 | error: expected `fn` 2 | --> tests/fail/not_a_function.rs:4:1 3 | | 4 | 4 | struct A; 5 | | ^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/consensus/uncles/README.md: -------------------------------------------------------------------------------- 1 | Uncles functionality for Substrate. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/proposer-metrics/README.md: -------------------------------------------------------------------------------- 1 | Prometheus basic proposer metrics. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/database/README.md: -------------------------------------------------------------------------------- 1 | The main database trait, allowing Substrate to store data persistently. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/finality-grandpa/README.md: -------------------------------------------------------------------------------- 1 | Primitives for GRANDPA integration, suitable for WASM compilation. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/tests/fail/macros_core_no_default.rs: -------------------------------------------------------------------------------- 1 | use tests_build::tokio; 2 | 3 | #[tokio::main] 4 | async fn my_fn() {} 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/dyn_templates/tests/templates/hbs/test.html.hbs: -------------------------------------------------------------------------------- 1 | {{> hbs/common/header }} 2 |
{{ content }}
3 | {{> hbs/common/footer }} 4 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/attr_non_empty.rs: -------------------------------------------------------------------------------- 1 | #[frame_support::pallet [foo]] 2 | mod foo { 3 | } 4 | 5 | fn main() { 6 | } 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/wasm-interface/README.md: -------------------------------------------------------------------------------- 1 | Types and traits for interfacing between the host and the wasm runtime. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/sync/task/mod.rs: -------------------------------------------------------------------------------- 1 | //! Thread-safe task notification primitives. 2 | 3 | mod atomic_waker; 4 | pub(crate) use self::atomic_waker::AtomicWaker; 5 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/not_async.stderr: -------------------------------------------------------------------------------- 1 | error: Handlers must be `async fn`s 2 | --> tests/fail/not_async.rs:4:1 3 | | 4 | 4 | fn handler() {} 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/src/derive/mod.rs: -------------------------------------------------------------------------------- 1 | mod form_field; 2 | pub mod from_form; 3 | pub mod from_form_field; 4 | pub mod responder; 5 | pub mod uri_display; 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/docs/media/sub.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/substrate/substrate-monthly-2022-02/docs/media/sub.gif -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/transaction-payment/rpc/runtime-api/README.md: -------------------------------------------------------------------------------- 1 | Runtime API definition for transaction payment pallet. 2 | 3 | License: Apache-2.0 4 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/macros/thread_local.rs: -------------------------------------------------------------------------------- 1 | #[cfg(all(loom, test))] 2 | macro_rules! thread_local { 3 | ($($tts:tt)+) => { loom::thread_local!{ $($tts)+ } } 4 | } 5 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/argument_not_extractor.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | 3 | #[debug_handler] 4 | async fn handler(foo: bool) {} 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/src/router/mod.rs: -------------------------------------------------------------------------------- 1 | //! Rocket's router. 2 | 3 | mod collider; 4 | mod router; 5 | 6 | pub(crate) use collider::*; 7 | pub(crate) use router::*; 8 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/ed25519.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/ed25519.p12 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/contracts/common/README.md: -------------------------------------------------------------------------------- 1 | A crate that hosts a common definitions that are relevant for the pallet-contracts. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/maybe-compressed-blob/README.md: -------------------------------------------------------------------------------- 1 | Handling of blobs, typicaly validation code, which may be compressed. 2 | 3 | License: Apache-2.0 4 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/trie/README.md: -------------------------------------------------------------------------------- 1 | Utility functions to interact with Substrate's Base-16 Modified Merkle Patricia tree ("trie"). 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/README.md: -------------------------------------------------------------------------------- 1 | Tests the various combination of feature flags. This is broken out to a separate 2 | crate to work around limitations with cargo features. 3 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/tests/fail/macros_dead_code.rs: -------------------------------------------------------------------------------- 1 | #![deny(dead_code)] 2 | 3 | use tests_build::tokio; 4 | 5 | #[tokio::main] 6 | async fn f() {} 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/tests/pass/macros_main_return.rs: -------------------------------------------------------------------------------- 1 | use tests_build::tokio; 2 | 3 | #[tokio::main] 4 | async fn main() -> Result<(), ()> { 5 | return Ok(()); 6 | } 7 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "annotated-rs" 7 | version = "0.1.0" 8 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-extra/src/middleware/mod.rs: -------------------------------------------------------------------------------- 1 | //! Additional types for creating middleware. 2 | 3 | pub mod middleware_fn; 4 | 5 | pub use self::middleware_fn::{from_fn, Next}; 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/rsa_sha256.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/rsa_sha256.p12 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/consensus/common/README.md: -------------------------------------------------------------------------------- 1 | Collection of common consensus specific implementations 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/consensus/epochs/README.md: -------------------------------------------------------------------------------- 1 | Generic utilities for epoch-based consensus engines. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/version/README.md: -------------------------------------------------------------------------------- 1 | Version module for the Substrate runtime; Provides a function that returns the runtime version. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/.github/workflows/patch.toml: -------------------------------------------------------------------------------- 1 | # Patch dependencies to run all tests against versions of the crate in the 2 | # repository. 3 | [patch.crates-io] 4 | axum = { path = "axum" } 5 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | if let Some(true) = version_check::is_feature_flaggable() { 3 | println!("cargo:rustc-cfg=nightly"); 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/ed25519_key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MC4CAQAwBQYDK2VwBCIEIKzhuOs4KVtmEBw86yumn8ID4tYm/aPmz8QtBIrlJkTE 3 | -----END PRIVATE KEY----- 4 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/application-crypto/README.md: -------------------------------------------------------------------------------- 1 | Traits and macros for constructing application specific strongly typed crypto wrappers. 2 | 3 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/invalid_attrs.stderr: -------------------------------------------------------------------------------- 1 | error: unknown argument 2 | --> tests/fail/invalid_attrs.rs:3:17 3 | | 4 | 3 | #[debug_handler(foo)] 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/wrong_return_type.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | 3 | #[debug_handler] 4 | async fn handler() -> bool { 5 | false 6 | } 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/todo/static/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/rocket/rocket-0.5.0-rc.2/examples/todo/static/images/favicon.png -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.github/workflows/mlc_config.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": [ 3 | { 4 | "pattern": "^https://crates.io", 5 | } 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/contracts/fixtures/dummy.wat: -------------------------------------------------------------------------------- 1 | ;; A valid contract which does nothing at all 2 | (module 3 | (func (export "deploy")) 4 | (func (export "call")) 5 | ) 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/trie/test-res/proof: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/substrate/substrate-monthly-2022-02/primitives/trie/test-res/proof -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/http/src/tls/mod.rs: -------------------------------------------------------------------------------- 1 | mod listener; 2 | mod util; 3 | 4 | #[cfg(feature = "mtls")] 5 | pub mod mtls; 6 | 7 | pub use listener::{Config, TlsListener}; 8 | pub use rustls; 9 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/tests/twice_managed_state.rs: -------------------------------------------------------------------------------- 1 | struct A; 2 | 3 | #[test] 4 | #[should_panic] 5 | fn twice_managed_state() { 6 | let _ = rocket::build().manage(A).manage(A); 7 | } 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/keystore/README.md: -------------------------------------------------------------------------------- 1 | Keystore (and session key management) for ed25519 based chains like Polkadot. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/authorship/README.md: -------------------------------------------------------------------------------- 1 | Authorship tracking for FRAME runtimes. 2 | 3 | This tracks the current author of the block and recent uncles. 4 | 5 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/indices/README.md: -------------------------------------------------------------------------------- 1 | An index is a short form of an address. This module handles allocation 2 | of indices for a newly created accounts. 3 | 4 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/adding_self_parameter.rs: -------------------------------------------------------------------------------- 1 | sp_api::decl_runtime_apis! { 2 | pub trait Api { 3 | fn test(&self); 4 | } 5 | } 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/utils/fork-tree/README.md: -------------------------------------------------------------------------------- 1 | Utility library for managing tree-like ordered data with logic for pruning 2 | the tree while finalizing nodes. 3 | 4 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/sse/assets/script.js: -------------------------------------------------------------------------------- 1 | var eventSource = new EventSource('sse'); 2 | 3 | eventSource.onmessage = function(event) { 4 | console.log('Message from server ', event.data); 5 | } 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/static-files/static/rocket-icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/rocket/rocket-0.5.0-rc.2/examples/static-files/static/rocket-icon.jpg -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/ecdsa_nistp256_sha256.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/ecdsa_nistp256_sha256.p12 -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/ecdsa_nistp384_sha384.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/ecdsa_nistp384_sha384.p12 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/executor/common/README.md: -------------------------------------------------------------------------------- 1 | A set of common definitions that are needed for defining execution engines. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/executor/wasmi/README.md: -------------------------------------------------------------------------------- 1 | This crate provides an implementation of `WasmModule` that is baked by wasmi. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/rpc/README.md: -------------------------------------------------------------------------------- 1 | Substrate RPC implementation. 2 | 3 | A core implementation of Substrate RPC interfaces. 4 | 5 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/declaring_old_block.rs: -------------------------------------------------------------------------------- 1 | sp_api::decl_runtime_apis! { 2 | pub trait Api { 3 | fn test(); 4 | } 5 | } 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/pass/multiple_extractors.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | 3 | #[debug_handler] 4 | async fn handler(_one: String, _two: String, _three: String) {} 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/static-files/static/index.html: -------------------------------------------------------------------------------- 1 |

Hello, world!

2 | 3 | 4 | A rocket icon. 5 | 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/informant/README.md: -------------------------------------------------------------------------------- 1 | Console informant. Prints sync progress and block events. Runs on the calling thread. 2 | 3 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/babe/README.md: -------------------------------------------------------------------------------- 1 | Consensus extension module for BABE consensus. Collects on-chain randomness 2 | from VRF outputs and manages epoch transitions. 3 | 4 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/trie/test-res/storage_root: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/substrate/substrate-monthly-2022-02/primitives/trie/test-res/storage_root -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/tests/support/signal.rs: -------------------------------------------------------------------------------- 1 | pub fn send_signal(signal: libc::c_int) { 2 | use libc::{getpid, kill}; 3 | 4 | unsafe { 5 | assert_eq!(kill(getpid(), signal), 0); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/contracts/benchmarks/ink_erc20.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/substrate/substrate-monthly-2022-02/frame/contracts/benchmarks/ink_erc20.wasm -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/declaring_own_block_with_different_name.rs: -------------------------------------------------------------------------------- 1 | sp_api::decl_runtime_apis! { 2 | pub trait Api { 3 | fn test(); 4 | } 5 | } 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/invalid_api_version.rs: -------------------------------------------------------------------------------- 1 | sp_api::decl_runtime_apis! { 2 | #[api_version] 3 | pub trait Api { 4 | fn test(data: u64); 5 | } 6 | } 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/pass_by_enum_with_struct.rs: -------------------------------------------------------------------------------- 1 | use sp_runtime_interface::pass_by::PassByEnum; 2 | 3 | #[derive(PassByEnum)] 4 | struct Test; 5 | 6 | fn main() {} 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/trie/test-res/valid-delta-order: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/substrate/substrate-monthly-2022-02/primitives/trie/test-res/valid-delta-order -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/src/catcher/mod.rs: -------------------------------------------------------------------------------- 1 | //! Types and traits for error catchers and their handlers and return types. 2 | 3 | mod catcher; 4 | mod handler; 5 | 6 | pub use catcher::*; 7 | pub use handler::*; 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/contracts/benchmarks/solang_erc20.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/substrate/substrate-monthly-2022-02/frame/contracts/benchmarks/solang_erc20.wasm -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_where_block.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime {} 5 | } 6 | 7 | fn main() {} 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/invalid_api_version_2.rs: -------------------------------------------------------------------------------- 1 | sp_api::decl_runtime_apis! { 2 | #[api_version("1")] 3 | pub trait Api { 4 | fn test(data: u64); 5 | } 6 | } 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/invalid_api_version_3.rs: -------------------------------------------------------------------------------- 1 | sp_api::decl_runtime_apis! { 2 | #[api_version()] 3 | pub trait Api { 4 | fn test(data: u64); 5 | } 6 | } 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/trie/test-res/invalid-delta-order: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/substrate/substrate-monthly-2022-02/primitives/trie/test-res/invalid-delta-order -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/pass/associated_fn_without_self.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | 3 | struct A; 4 | 5 | impl A { 6 | #[debug_handler] 7 | async fn handler() {} 8 | } 9 | 10 | fn main() {} 11 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/pass/ready.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | use std::future::{Ready, ready}; 3 | 4 | #[debug_handler] 5 | fn handler() -> Ready<()> { 6 | ready(()) 7 | } 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/peerset/README.md: -------------------------------------------------------------------------------- 1 | Peer Set Manager (PSM). Contains the strategy for choosing which nodes the network should be 2 | connected to. 3 | 4 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/contracts/benchmarks/ink_erc20_test.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/substrate/substrate-monthly-2022-02/frame/contracts/benchmarks/ink_erc20_test.wasm -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/contracts/fixtures/run_out_of_gas.wat: -------------------------------------------------------------------------------- 1 | (module 2 | (func (export "call") 3 | (loop $inf (br $inf)) ;; just run out of gas 4 | (unreachable) 5 | ) 6 | (func (export "deploy")) 7 | ) 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/missing_voter.stderr: -------------------------------------------------------------------------------- 1 | error: Expected binding: `VoterIndex = ...` 2 | --> $DIR/missing_voter.rs:4:2 3 | | 4 | 4 | u16, 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/not_send.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | 3 | #[debug_handler] 4 | async fn handler() { 5 | let rc = std::rc::Rc::new(()); 6 | async {}.await; 7 | } 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/pass/mut_extractor.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | 3 | #[debug_handler] 4 | async fn handler(mut foo: String) -> String { 5 | foo += "bar"; 6 | foo 7 | } 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-extra/src/response/mod.rs: -------------------------------------------------------------------------------- 1 | //! Additional types for generating responses. 2 | 3 | #[cfg(feature = "erased-json")] 4 | mod erased_json; 5 | 6 | #[cfg(feature = "erased-json")] 7 | pub use erased_json::ErasedJson; 8 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/dyn_templates/tests/templates/tera/html_test.html.tera: -------------------------------------------------------------------------------- 1 | {% extends "tera/base" %} 2 | {% block title %}{{ title }}{% endblock title %} 3 | {% block content %} 4 | {{ content }} 5 | {% endblock content %} 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/dyn_templates/tests/templates/tera/txt_test.txt.tera: -------------------------------------------------------------------------------- 1 | {% extends "tera/base" %} 2 | {% block title %}{{ title }}{% endblock title %} 3 | {% block content %} 4 | {{ content }} 5 | {% endblock content %} 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/event_wrong_item_name.stderr: -------------------------------------------------------------------------------- 1 | error: expected `Event` 2 | --> $DIR/event_wrong_item_name.rs:19:11 3 | | 4 | 19 | pub enum Foo {} 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/missing_target.stderr: -------------------------------------------------------------------------------- 1 | error: Expected binding: `TargetIndex = ...` 2 | --> $DIR/missing_target.rs:5:2 3 | | 4 | 5 | u8, 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/no_annotations.stderr: -------------------------------------------------------------------------------- 1 | error: Expected binding: `VoterIndex = ...` 2 | --> $DIR/no_annotations.rs:4:2 3 | | 4 | 4 | u16, 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/extract_self_ref.stderr: -------------------------------------------------------------------------------- 1 | error: Handlers must only take owned values 2 | --> tests/fail/extract_self_ref.rs:23:22 3 | | 4 | 23 | async fn handler(&self) {} 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/hello/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "hello" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/rpc-api/README.md: -------------------------------------------------------------------------------- 1 | Substrate RPC interfaces. 2 | 3 | A collection of RPC methods and subscriptions supported by all substrate clients. 4 | 5 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/authority-discovery/README.md: -------------------------------------------------------------------------------- 1 | # Authority discovery module. 2 | 3 | This module is used by the `client/authority-discovery` to retrieve the 4 | current set of authorities. 5 | 6 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_token_after_name.stderr: -------------------------------------------------------------------------------- 1 | error: expected `:` 2 | --> $DIR/invalid_token_after_name.rs:9:10 3 | | 4 | 9 | system ? 5 | | ^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/no_comma_after_where.stderr: -------------------------------------------------------------------------------- 1 | error: Expected `,` or `{` 2 | --> $DIR/no_comma_after_where.rs:6:3 3 | | 4 | 6 | Block = Block, 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/error_wrong_item.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::error, expected item enum 2 | --> $DIR/error_wrong_item.rs:19:2 3 | | 4 | 19 | pub struct Foo; 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/error_wrong_item_name.stderr: -------------------------------------------------------------------------------- 1 | error: expected `Error` 2 | --> $DIR/error_wrong_item_name.rs:19:11 3 | | 4 | 19 | pub enum Foo {} 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/event_wrong_item.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::event, expected item enum 2 | --> $DIR/event_wrong_item.rs:19:2 3 | | 4 | 19 | pub struct Foo; 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/storage_wrong_item.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::storage, expect item type. 2 | --> $DIR/storage_wrong_item.rs:19:2 3 | | 4 | 19 | impl Foo {} 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/no_method_implementation.rs: -------------------------------------------------------------------------------- 1 | use sp_runtime_interface::runtime_interface; 2 | 3 | #[runtime_interface] 4 | trait Test { 5 | fn test(); 6 | } 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/take_self_by_value.rs: -------------------------------------------------------------------------------- 1 | use sp_runtime_interface::runtime_interface; 2 | 3 | #[runtime_interface] 4 | trait Test { 5 | fn test(self) {} 6 | } 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/transaction-storage-proof/README.md: -------------------------------------------------------------------------------- 1 | Transaction Storage Proof Primitives 2 | 3 | Contains types and basic code to extract storage proofs for indexed transactions. 4 | 5 | License: Apache-2.0 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/tests/macros_clippy.rs: -------------------------------------------------------------------------------- 1 | #[cfg(feature = "full")] 2 | #[tokio::test] 3 | async fn test_with_semicolon_without_return_type() { 4 | #![deny(clippy::semicolon_if_nothing_returned)] 5 | 6 | dbg!(0); 7 | } 8 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/pass/impl_future.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | use std::future::Future; 3 | 4 | #[debug_handler] 5 | fn handler() -> impl Future { 6 | async {} 7 | } 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail/routes.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | fn main() { 4 | let _ = routes![a b]; 5 | let _ = routes![]; 6 | let _ = routes![a::, ]; 7 | let _ = routes![a::]; 8 | } 9 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/fairings/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "fairings" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/testing/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "testing" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/derive_no_bound_ui/eq.rs: -------------------------------------------------------------------------------- 1 | trait Config { 2 | type C; 3 | } 4 | 5 | #[derive(frame_support::EqNoBound)] 6 | struct Foo { 7 | c: T::C, 8 | } 9 | 10 | fn main() {} 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/duplicate_call_attr.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid duplicated attribute 2 | --> $DIR/duplicate_call_attr.rs:23:12 3 | | 4 | 23 | #[pallet::call] 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/adding_self_parameter.stderr: -------------------------------------------------------------------------------- 1 | error: `self` as argument not supported. 2 | --> $DIR/adding_self_parameter.rs:3:11 3 | | 4 | 3 | fn test(&self); 5 | | ^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/missing_accuracy.stderr: -------------------------------------------------------------------------------- 1 | error: Expected binding: `Accuracy = ...` 2 | --> $DIR/missing_accuracy.rs:6:2 3 | | 4 | 6 | Perbill, 5 | | ^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/swap_voter_target.stderr: -------------------------------------------------------------------------------- 1 | error: Expected `VoterIndex` 2 | --> $DIR/swap_voter_target.rs:4:2 3 | | 4 | 4 | TargetIndex = u16, 5 | | ^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/no_generic_parameters_trait.rs: -------------------------------------------------------------------------------- 1 | use sp_runtime_interface::runtime_interface; 2 | 3 | #[runtime_interface] 4 | trait Test { 5 | fn test() {} 6 | } 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/no_method_implementation.stderr: -------------------------------------------------------------------------------- 1 | error: Methods need to have an implementation. 2 | --> $DIR/no_method_implementation.rs:5:2 3 | | 4 | 5 | fn test(); 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/utils/frame/rpc/support/README.md: -------------------------------------------------------------------------------- 1 | Combines [sc_rpc_api::state::StateClient] with [frame_support::storage::generator] traits 2 | to provide strongly typed chain state queries over rpc. 3 | 4 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/.github/labeler.yml: -------------------------------------------------------------------------------- 1 | 2 | R-loom: 3 | - ./tokio/src/sync/* 4 | - ./tokio/src/sync/**/* 5 | - ./tokio-util/src/sync/* 6 | - ./tokio-util/src/sync/**/* 7 | - ./tokio/src/runtime/* 8 | - ./tokio/src/runtime/**/* 9 | 10 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/extract_self_mut.stderr: -------------------------------------------------------------------------------- 1 | error: Handlers must only take owned values 2 | --> tests/fail/extract_self_mut.rs:23:22 3 | | 4 | 23 | async fn handler(&mut self) {} 5 | | ^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-nightly/routes.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | fn main() { 4 | let _ = routes![a b]; 5 | let _ = routes![]; 6 | let _ = routes![a::, ]; 7 | let _ = routes![a::]; 8 | } 9 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-stable/routes.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | fn main() { 4 | let _ = routes![a b]; 5 | let _ = routes![]; 6 | let _ = routes![a::, ]; 7 | let _ = routes![a::]; 8 | } 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "cargo" 4 | directory: "/" 5 | labels: ["A2-insubstantial", "B0-silent", "C1-low 📌"] 6 | schedule: 7 | interval: "daily" 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/service/README.md: -------------------------------------------------------------------------------- 1 | Substrate service. Starts a thread that spins up the network, client, and extrinsic pool. 2 | Manages communication between them. 3 | 4 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/no_generic_parameters_method.rs: -------------------------------------------------------------------------------- 1 | use sp_runtime_interface::runtime_interface; 2 | 3 | #[runtime_interface] 4 | trait Test { 5 | fn test() {} 6 | } 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/pass_by_enum_with_value_variant.rs: -------------------------------------------------------------------------------- 1 | use sp_runtime_interface::pass_by::PassByEnum; 2 | 3 | #[derive(PassByEnum)] 4 | enum Test { 5 | Var0(u32), 6 | } 7 | 8 | fn main() {} 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/take_self_by_value.stderr: -------------------------------------------------------------------------------- 1 | error: Taking `Self` by value is not allowed. 2 | --> $DIR/take_self_by_value.rs:5:10 3 | | 4 | 5 | fn test(self) {} 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/std/README.md: -------------------------------------------------------------------------------- 1 | Lowest-abstraction level for the Substrate runtime: just exports useful primitives from std 2 | or client/alloc to be used with any code that depends on the runtime. 3 | 4 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/utils/frame/remote-externalities/test_data/proxy_test.top: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/better-rs/annotated-rs/HEAD/packages/substrate/substrate-monthly-2022-02/utils/frame/remote-externalities/test_data/proxy_test.top -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/pass/impl_into_response.rs: -------------------------------------------------------------------------------- 1 | use axum_debug::debug_handler; 2 | use axum::response::IntoResponse; 3 | 4 | #[debug_handler] 5 | async fn handler() -> impl IntoResponse { 6 | "hi!" 7 | } 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail/catchers.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | fn main() { 4 | let _ = catchers![a b]; 5 | let _ = catchers![]; 6 | let _ = catchers![a::, ]; 7 | let _ = catchers![a::]; 8 | } 9 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/http/src/parse/mod.rs: -------------------------------------------------------------------------------- 1 | mod accept; 2 | mod checkers; 3 | mod indexed; 4 | mod media_type; 5 | 6 | pub use self::accept::*; 7 | pub use self::media_type::*; 8 | 9 | pub mod uri; 10 | 11 | pub use self::indexed::*; 12 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/static-files/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "static-files" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/authority-discovery/build.rs: -------------------------------------------------------------------------------- 1 | fn main() { 2 | prost_build::compile_protos( 3 | &["src/worker/schema/dht-v1.proto", "src/worker/schema/dht-v2.proto"], 4 | &["src/worker/schema"], 5 | ) 6 | .unwrap(); 7 | } 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/membership/README.md: -------------------------------------------------------------------------------- 1 | # Membership Module 2 | 3 | Allows control of membership of a set of `AccountId`s, useful for managing membership of of a 4 | collective. A prime member may be set. 5 | 6 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/derive_no_bound_ui/clone.rs: -------------------------------------------------------------------------------- 1 | trait Config { 2 | type C; 3 | } 4 | 5 | #[derive(frame_support::CloneNoBound)] 6 | struct Foo { 7 | c: T::C, 8 | } 9 | 10 | fn main() {} 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/derive_no_bound_ui/debug.rs: -------------------------------------------------------------------------------- 1 | trait Config { 2 | type C; 3 | } 4 | 5 | #[derive(frame_support::DebugNoBound)] 6 | struct Foo { 7 | c: T::C, 8 | } 9 | 10 | fn main() {} 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/derive_no_bound_ui/default.rs: -------------------------------------------------------------------------------- 1 | trait Config { 2 | type C; 3 | } 4 | 5 | #[derive(frame_support::DefaultNoBound)] 6 | struct Foo { 7 | c: T::C, 8 | } 9 | 10 | fn main() {} 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/call_no_origin.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::call, must have at least origin arg 2 | --> $DIR/call_no_origin.rs:17:7 3 | | 4 | 17 | pub fn foo() {} 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/no_generic_parameters_trait.stderr: -------------------------------------------------------------------------------- 1 | error: Generic parameters not supported. 2 | --> $DIR/no_generic_parameters_trait.rs:4:12 3 | | 4 | 4 | trait Test { 5 | | ^ 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-nightly/catchers.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | fn main() { 4 | let _ = catchers![a b]; 5 | let _ = catchers![]; 6 | let _ = catchers![a::, ]; 7 | let _ = catchers![a::]; 8 | } 9 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-stable/catchers.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | fn main() { 4 | let _ = catchers![a b]; 5 | let _ = catchers![]; 6 | let _ = catchers![a::, ]; 7 | let _ = catchers![a::]; 8 | } 9 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/error-handling/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "error-handling" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/manual-routing/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "manual_routes" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/state/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "state" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | flume = "0.10" 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.maintain/update-deps.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -- 2 | set -eu 3 | case $0 in 4 | (/*) dir=${0%/*}/;; 5 | (*/*) dir=./${0%/*};; 6 | (*) dir=.;; 7 | esac 8 | 9 | find "$dir/.." -name Cargo.lock -execdir cargo update \; 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/derive_no_bound_ui/partial_eq.rs: -------------------------------------------------------------------------------- 1 | trait Config { 2 | type C; 3 | } 4 | 5 | #[derive(frame_support::PartialEqNoBound)] 6 | struct Foo { 7 | c: T::C, 8 | } 9 | 10 | fn main() {} 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/call_invalid_const.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::call, only method accepted 2 | --> $DIR/call_invalid_const.rs:17:3 3 | | 4 | 17 | const Foo: u8 = 3u8; 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/error_no_fieldless.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::error, unexpected fields, must be `Unit` 2 | --> $DIR/error_no_fieldless.rs:20:5 3 | | 4 | 20 | U8(u8), 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/no_generic_parameters_method.stderr: -------------------------------------------------------------------------------- 1 | error: Generic parameters not supported. 2 | --> $DIR/no_generic_parameters_method.rs:5:10 3 | | 4 | 5 | fn test() {} 5 | | ^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/serializer/README.md: -------------------------------------------------------------------------------- 1 | Substrate customizable serde serializer. 2 | 3 | The idea is that we can later change the implementation 4 | to something more compact, but for now we're using JSON. 5 | 6 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/staking/README.md: -------------------------------------------------------------------------------- 1 | A crate which contains primitives that are useful for implementation that uses staking 2 | approaches in general. Definitions related to sessions, slashing, etc go here. 3 | 4 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-stable/route-warnings.stderr: -------------------------------------------------------------------------------- 1 | error: checking for warnings! 2 | --> $DIR/route-warnings.rs:25:5 3 | | 4 | 25 | compile_error!("checking for warnings!") 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/config/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "config" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib", features = ["secrets"] } 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/pastebin/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "pastebin" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | rand = "0.8" 11 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/tls/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "tls" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib", features = ["tls", "mtls"] } 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_module_instance.stderr: -------------------------------------------------------------------------------- 1 | error: expected identifier 2 | --> $DIR/missing_module_instance.rs:9:20 3 | | 4 | 9 | system: System::<>, 5 | | ^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/bin/node-template/runtime/build.rs: -------------------------------------------------------------------------------- 1 | use substrate_wasm_builder::WasmBuilder; 2 | 3 | fn main() { 4 | WasmBuilder::new() 5 | .with_current_project() 6 | .export_heap_base() 7 | .import_memory() 8 | .build() 9 | } 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/empty_pallet_path.stderr: -------------------------------------------------------------------------------- 1 | error: expected one of: `crate`, `self`, `super`, identifier 2 | --> $DIR/empty_pallet_path.rs:9:11 3 | | 4 | 9 | system: , 5 | | ^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_where_block.stderr: -------------------------------------------------------------------------------- 1 | error: expected `where` 2 | --> tests/construct_runtime_ui/missing_where_block.rs:4:19 3 | | 4 | 4 | pub enum Runtime {} 5 | | ^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/no_default_implementation.rs: -------------------------------------------------------------------------------- 1 | sp_api::decl_runtime_apis! { 2 | pub trait Api { 3 | fn test() { 4 | println!("Hey, I'm a default implementation!"); 5 | } 6 | } 7 | } 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/no_gaps_in_versions.stderr: -------------------------------------------------------------------------------- 1 | error: Unexpected version attribute: missing version '2' for this function 2 | --> $DIR/no_gaps_in_versions.rs:13:2 3 | | 4 | 13 | #[version(3)] 5 | | ^ 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/tests/io_async_read.rs: -------------------------------------------------------------------------------- 1 | #![warn(rust_2018_idioms)] 2 | #![cfg(feature = "full")] 3 | 4 | use tokio::io::AsyncRead; 5 | 6 | #[test] 7 | fn assert_obj_safe() { 8 | fn _assert() {} 9 | _assert::>(); 10 | } 11 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-extra/src/extract/mod.rs: -------------------------------------------------------------------------------- 1 | //! Additional extractors. 2 | 3 | mod cached; 4 | 5 | pub use self::cached::Cached; 6 | 7 | pub mod rejection { 8 | //! Rejection response types. 9 | 10 | pub use super::cached::CachedRejection; 11 | } 12 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: true 2 | contact_links: 3 | - name: Question 4 | url: https://github.com/SergioBenitez/Rocket/discussions 5 | about: Please ask questions or raise indefinite concerns on Dicussions 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/responders/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "responders" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | parking_lot = "0.12" 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/consensus/manual-seal/README.md: -------------------------------------------------------------------------------- 1 | A manual sealing engine: the engine listens for rpc calls to seal blocks and create forks. 2 | This is suitable for a testing environment. 3 | 4 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/trait_invalid_item.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::constant in pallet::config, expected type trait item 2 | --> $DIR/trait_invalid_item.rs:9:3 3 | | 4 | 9 | const U: u8 = 3; 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/pass_by_inner_with_two_fields.rs: -------------------------------------------------------------------------------- 1 | use sp_runtime_interface::pass_by::PassByInner; 2 | 3 | #[derive(PassByInner)] 4 | struct Test { 5 | data: u32, 6 | data2: u32, 7 | } 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/macros/ready.rs: -------------------------------------------------------------------------------- 1 | macro_rules! ready { 2 | ($e:expr $(,)?) => { 3 | match $e { 4 | std::task::Poll::Ready(t) => t, 5 | std::task::Poll::Pending => return std::task::Poll::Pending, 6 | } 7 | }; 8 | } 9 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/hello-world/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-hello-world" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail/bad-ignored-segments.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | #[get("/<_>")] 4 | fn i0() {} 5 | 6 | #[get("/c?<_>")] 7 | fn i1() {} 8 | 9 | #[post("/d", data = "<_>")] 10 | fn i2() {} 11 | 12 | fn main() { } 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/bin/node-template/node/build.rs: -------------------------------------------------------------------------------- 1 | use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed}; 2 | 3 | /// 4 | /// 5 | /// 6 | fn main() { 7 | generate_cargo_keys(); 8 | 9 | rerun_if_git_head_changed(); 10 | } 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/network/build.rs: -------------------------------------------------------------------------------- 1 | const PROTOS: &[&str] = 2 | &["src/schema/api.v1.proto", "src/schema/light.v1.proto", "src/schema/bitswap.v1.2.0.proto"]; 3 | 4 | fn main() { 5 | prost_build::compile_protos(PROTOS, &["src/schema"]).unwrap(); 6 | } 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_where_param.stderr: -------------------------------------------------------------------------------- 1 | error: expected one of: `Block`, `NodeBlock`, `UncheckedExtrinsic` 2 | --> $DIR/invalid_where_param.rs:7:3 3 | | 4 | 7 | TypeX = Block, 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/inherent_invalid_item.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::inherent, expected impl<..> ProvideInherent for Pallet<..> 2 | --> $DIR/inherent_invalid_item.rs:19:2 3 | | 4 | 19 | impl Foo {} 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/invalid_api_version.stderr: -------------------------------------------------------------------------------- 1 | error: Unexpected `api_version` attribute. The supported format is `api_version(1)` 2 | --> $DIR/invalid_api_version.rs:2:4 3 | | 4 | 2 | #[api_version] 5 | | ^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/missing_block_generic_parameter.stderr: -------------------------------------------------------------------------------- 1 | error: Missing `Block` generic parameter. 2 | --> $DIR/missing_block_generic_parameter.rs:18:13 3 | | 4 | 18 | impl self::Api for Runtime { 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-stable/bad-ignored-segments.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | #[get("/<_>")] 4 | fn i0() {} 5 | 6 | #[get("/c?<_>")] 7 | fn i1() {} 8 | 9 | #[post("/d", data = "<_>")] 10 | fn i2() {} 11 | 12 | fn main() { } 13 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/src/form/name/mod.rs: -------------------------------------------------------------------------------- 1 | //! Types for field names, name keys, and key indices. 2 | 3 | mod buf; 4 | mod key; 5 | mod name; 6 | mod view; 7 | 8 | pub use buf::NameBuf; 9 | pub use key::Key; 10 | pub use name::Name; 11 | pub use view::NameView; 12 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/databases/db/sqlx/migrations/20210331024424_create-posts-table.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE posts ( 2 | id INTEGER PRIMARY KEY AUTOINCREMENT, 3 | title VARCHAR NOT NULL, 4 | text VARCHAR NOT NULL, 5 | published BOOLEAN NOT NULL DEFAULT 0 6 | ); 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/duplicate_store_attr.stderr: -------------------------------------------------------------------------------- 1 | error: Unexpected duplicated attribute 2 | --> $DIR/duplicate_store_attr.rs:12:12 3 | | 4 | 12 | #[pallet::generate_store(trait Store)] 5 | | ^^^^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/genesis_wrong_name.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::genesis_build, expected impl<..> GenesisBuild<..> for GenesisConfig<..> 2 | --> $DIR/genesis_wrong_name.rs:19:2 3 | | 4 | 19 | impl Foo {} 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/changed_in_unknown_version.stderr: -------------------------------------------------------------------------------- 1 | error: `changed_in` version can not be greater than the `api_version` 2 | --> $DIR/changed_in_unknown_version.rs:14:3 3 | | 4 | 14 | fn test(data: u64); 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/invalid_api_version_3.stderr: -------------------------------------------------------------------------------- 1 | error: Unexpected `api_version` attribute. The supported format is `api_version(1)` 2 | --> $DIR/invalid_api_version_3.rs:2:4 3 | | 4 | 2 | #[api_version()] 5 | | ^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/wrong_attribute.stderr: -------------------------------------------------------------------------------- 1 | error: compact solution can accept only #[compact] 2 | --> $DIR/wrong_attribute.rs:4:2 3 | | 4 | 4 | #[pages(1)] pub struct TestSolution::< 5 | | ^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/graceful-shutdown/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-graceful-shutdown" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/dyn_templates/tests/templates/tera/base.txt.tera: -------------------------------------------------------------------------------- 1 | {% block head %} 2 | h_start 3 | title: {% block title %}{% endblock title %} 4 | h_end 5 | {% endblock head %} 6 | {% block content %}{% endblock content %} 7 | {% block footer %}foot{% endblock footer %} 8 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-nightly/bad-ignored-segments.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | #[get("/<_>")] 4 | fn i0() {} 5 | 6 | #[get("/c?<_>")] 7 | fn i1() {} 8 | 9 | #[post("/d", data = "<_>")] 10 | fn i2() {} 11 | 12 | fn main() { } 13 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/databases/db/diesel/migrations/20210329150332_create_posts_table/up.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE posts ( 2 | id INTEGER PRIMARY KEY AUTOINCREMENT, 3 | title VARCHAR NOT NULL, 4 | text VARCHAR NOT NULL, 5 | published BOOLEAN NOT NULL DEFAULT 0 6 | ); 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/more_than_256_modules.stderr: -------------------------------------------------------------------------------- 1 | error: Pallet index doesn't fit into u8, index is 256 2 | --> $DIR/more_than_256_modules.rs:10:3 3 | | 4 | 10 | Pallet256: pallet256::{}, 5 | | ^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/trait_constant_invalid_bound.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid usage of `#[pallet::constant]`: `Get` trait bound not found 2 | --> $DIR/trait_constant_invalid_bound.rs:9:3 3 | | 4 | 9 | type U; 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/invalid_api_version_2.stderr: -------------------------------------------------------------------------------- 1 | error: Unexpected `api_version` attribute. The supported format is `api_version(1)` 2 | --> $DIR/invalid_api_version_2.rs:2:4 3 | | 4 | 2 | #[api_version("1")] 5 | | ^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/test-utils/tests/ui/too-many-func-parameters.stderr: -------------------------------------------------------------------------------- 1 | error: No arguments expected for tests. 2 | --> $DIR/too-many-func-parameters.rs:20:1 3 | | 4 | 20 | async fn too_many_func_parameters(_: u32) { 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /docs/readme.md: -------------------------------------------------------------------------------- 1 | # 文档: 2 | 3 | > rust web 框架对比: 4 | 5 | ![rust-web](./rust-web.drawio.svg) 6 | 7 | ## vscode 绘图插件: 8 | 9 | - 安装: Draw.io Integration 10 | - 新建文件: test.drawio.svg 文件. 11 | - markdown 文件引入. 12 | - draw.io 内搜索: mindmap, 添加思维导图的图表文件. 13 | - 就可以在 github 上绘制思维导图了. 14 | - 非常非常棒. 15 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/README.md: -------------------------------------------------------------------------------- 1 | # Examples 2 | 3 | This folder contains numerous example showing how to use axum. Each example is 4 | setup as its own crate so its dependencies are clear. 5 | 6 | For a list of what the community built with axum, please see the list 7 | [here](../ECOSYSTEM.md). -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/databases/Rocket.toml: -------------------------------------------------------------------------------- 1 | [default.databases.rusqlite] 2 | url = "file:rusqlite?mode=memory&cache=shared" 3 | 4 | [default.databases.sqlx] 5 | url = "db/sqlx/db.sqlite" 6 | 7 | [default.databases.diesel] 8 | url = "db/diesel/db.sqlite" 9 | timeout = 10 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/serialization/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "serialization" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies.rocket] 9 | path = "../../core/lib" 10 | features = ["json", "msgpack", "uuid"] 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_where_param.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | {} 8 | } 9 | 10 | fn main() {} 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/call_no_return.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::call, require return type DispatchResultWithPostInfo 2 | --> $DIR/call_no_return.rs:17:7 3 | | 4 | 17 | pub fn foo(origin: OriginFor) {} 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/storage_multiple_getters.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid attribute: Duplicate attribute 2 | --> $DIR/storage_multiple_getters.rs:20:3 3 | | 4 | 20 | #[pallet::getter(fn foo_error)] 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/type_value_no_return.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::type_value, expected return type 2 | --> $DIR/type_value_no_return.rs:18:24 3 | | 4 | 18 | #[pallet::type_value] fn Foo() {} 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/.cargo/audit.toml: -------------------------------------------------------------------------------- 1 | # See https://github.com/rustsec/rustsec/blob/59e1d2ad0b9cbc6892c26de233d4925074b4b97b/cargo-audit/audit.toml.example for example. 2 | 3 | [advisories] 4 | ignore = [ 5 | # https://github.com/tokio-rs/tokio/issues/4177 6 | "RUSTSEC-2020-0159", 7 | ] 8 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/sync_db_pools/codegen/tests/ui-fail/database-types.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket_sync_db_pools; 2 | 3 | struct Unknown; 4 | 5 | #[database("foo")] 6 | struct A(Unknown); 7 | 8 | #[database("foo")] 9 | struct B(Vec); 10 | 11 | fn main() { } 12 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/templating/templates/hbs/layout.html.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Rocket Example - {{ title }} 5 | 6 | 7 | {{> hbs/nav}} 8 | {{~> page}} 9 | {{> hbs/footer}} 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/contracts/fixtures/invalid_import.wat: -------------------------------------------------------------------------------- 1 | ;; A valid contract which does nothing at all but imports an invalid function 2 | (module 3 | (import "invalid" "invalid_88_99" (func (param i32 i32 i32))) 4 | (func (export "deploy")) 5 | (func (export "call")) 6 | ) 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/abundant_where_param.stderr: -------------------------------------------------------------------------------- 1 | error: `Block` was declared above. Please use exactly one declaration for `Block`. 2 | --> $DIR/abundant_where_param.rs:7:3 3 | | 4 | 7 | Block = Block1, 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/storage_invalid_rename_value.stderr: -------------------------------------------------------------------------------- 1 | error: `pub` is not a valid identifier 2 | --> $DIR/storage_invalid_rename_value.rs:13:29 3 | | 4 | 13 | #[pallet::storage_prefix = "pub"] 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/storage_multiple_renames.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid attribute: Duplicate attribute 2 | --> $DIR/storage_multiple_renames.rs:20:3 3 | | 4 | 20 | #[pallet::storage_prefix = "Baz"] 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/type_value_invalid_item.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::type_value, expected item fn 2 | --> $DIR/type_value_invalid_item.rs:18:24 3 | | 4 | 18 | #[pallet::type_value] struct Foo; 5 | | ^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/tests/macros_pin.rs: -------------------------------------------------------------------------------- 1 | async fn one() {} 2 | async fn two() {} 3 | 4 | #[tokio::test] 5 | async fn multi_pin() { 6 | tokio::pin! { 7 | let f1 = one(); 8 | let f2 = two(); 9 | } 10 | 11 | (&mut f1).await; 12 | (&mut f2).await; 13 | } 14 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/sync_db_pools/codegen/tests/ui-fail-stable/database-types.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket_sync_db_pools; 2 | 3 | struct Unknown; 4 | 5 | #[database("foo")] 6 | struct A(Unknown); 7 | 8 | #[database("foo")] 9 | struct B(Vec); 10 | 11 | fn main() { } 12 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/tests/mount_point.rs: -------------------------------------------------------------------------------- 1 | #[test] 2 | #[should_panic] 3 | fn bad_dynamic_mount() { 4 | let _ = rocket::build().mount("", vec![]); 5 | } 6 | 7 | #[test] 8 | fn good_static_mount() { 9 | let _ = rocket::build().mount("/abcdefghijkl_mno", vec![]); 10 | } 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/decl_storage_ui/config_duplicate.stderr: -------------------------------------------------------------------------------- 1 | error: `config()`/`get()` with the same name already defined. 2 | --> $DIR/config_duplicate.rs:27:21 3 | | 4 | 27 | pub Value2 config(value): u32; 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/decl_storage_ui/get_duplicate.stderr: -------------------------------------------------------------------------------- 1 | error: `config()`/`get()` with the same name already defined. 2 | --> $DIR/get_duplicate.rs:27:21 3 | | 4 | 27 | pub Value2 get(fn value) config(): u32; 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/no_annotations.rs: -------------------------------------------------------------------------------- 1 | use sp_npos_elections_solution_type::generate_solution_type; 2 | 3 | generate_solution_type!(pub struct TestSolution::< 4 | u16, 5 | u8, 6 | Perbill, 7 | >(8)); 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/sync_db_pools/codegen/tests/ui-fail-nightly/database-types.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket_sync_db_pools; 2 | 3 | struct Unknown; 4 | 5 | #[database("foo")] 6 | struct A(Unknown); 7 | 8 | #[database("foo")] 9 | struct B(Vec); 10 | 11 | fn main() { } 12 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/chat/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "chat" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib", features = ["json"] } 10 | 11 | [dev-dependencies] 12 | rand = "0.8" 13 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/static-files/static/hidden/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Hmm... 7 | 8 | 9 | 👀 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/decl_storage_ui/config_get_duplicate.stderr: -------------------------------------------------------------------------------- 1 | error: `config()`/`get()` with the same name already defined. 2 | --> $DIR/config_get_duplicate.rs:27:21 3 | | 4 | 27 | pub Value2 config(value): u32; 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/no_duplicate_versions.rs: -------------------------------------------------------------------------------- 1 | use sp_runtime_interface::runtime_interface; 2 | 3 | #[runtime_interface] 4 | trait Test { 5 | #[version(2)] 6 | fn test() { } 7 | #[version(2)] 8 | fn test() { } 9 | } 10 | 11 | fn main() {} 12 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | 3 | members = [ 4 | "tokio", 5 | "tokio-macros", 6 | "tokio-test", 7 | "tokio-stream", 8 | "tokio-util", 9 | 10 | # Internal 11 | "benches", 12 | "examples", 13 | "stress-test", 14 | "tests-build", 15 | "tests-integration", 16 | ] 17 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/macros/support.rs: -------------------------------------------------------------------------------- 1 | cfg_macros! { 2 | pub use crate::future::poll_fn; 3 | pub use crate::future::maybe_done::maybe_done; 4 | pub use crate::util::thread_rng_n; 5 | } 6 | 7 | pub use std::future::Future; 8 | pub use std::pin::Pin; 9 | pub use std::task::Poll; 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_where_param.stderr: -------------------------------------------------------------------------------- 1 | error: Missing associated type for `UncheckedExtrinsic`. Add `UncheckedExtrinsic` = ... to where section. 2 | --> tests/construct_runtime_ui/missing_where_param.rs:7:2 3 | | 4 | 7 | {} 5 | | ^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/decl_module_ui/reserved_keyword_two_times_integrity_test.rs: -------------------------------------------------------------------------------- 1 | frame_support::decl_module! { 2 | pub struct Module for enum Call where origin: T::Origin, system=self { 3 | fn integrity_test() {} 4 | 5 | fn integrity_test() {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/missing_path_for_trait.stderr: -------------------------------------------------------------------------------- 1 | error: The implemented trait has to be referenced with a path, e.g. `impl client::Core for Runtime`. 2 | --> $DIR/missing_path_for_trait.rs:18:7 3 | | 4 | 18 | impl Api for Runtime { 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "annotated-rs" 3 | version = "0.1.0" 4 | edition = "2021" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | 10 | 11 | 12 | [workspace] 13 | members = [ 14 | # "packages/axum/axum-axum-v0.4.5", 15 | ] -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/src/route/mod.rs: -------------------------------------------------------------------------------- 1 | //! Types and traits for routes and their request handlers and return types. 2 | 3 | mod handler; 4 | mod route; 5 | mod segment; 6 | mod uri; 7 | 8 | pub use handler::*; 9 | pub use route::*; 10 | pub use uri::*; 11 | 12 | pub(crate) use segment::Segment; 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/call_invalid_vis.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::call, dispatchable function must be public: `pub fn` 2 | --> $DIR/call_invalid_vis.rs:20:3 3 | | 4 | 20 | fn foo(origin: OriginFor) -> DispatchResultWithPostInfo { 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/error_where_clause.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::error, where clause is not allowed on pallet error item 2 | --> $DIR/error_where_clause.rs:19:20 3 | | 4 | 19 | pub enum Error where u32: From {} 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/storage_invalid_attribute.stderr: -------------------------------------------------------------------------------- 1 | error: expected one of: `getter`, `storage_prefix`, `unbounded` 2 | --> $DIR/storage_invalid_attribute.rs:16:12 3 | | 4 | 16 | #[pallet::generate_store(pub trait Store)] 5 | | ^^^^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/system/rpc/runtime-api/README.md: -------------------------------------------------------------------------------- 1 | Runtime API definition required by System RPC extensions. 2 | 3 | This API should be imported and implemented by the runtime, 4 | of a node that wants to use the custom RPC extension 5 | adding System access methods. 6 | 7 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-integration/tests/macros_pin.rs: -------------------------------------------------------------------------------- 1 | use futures::executor::block_on; 2 | 3 | async fn my_async_fn() {} 4 | 5 | #[test] 6 | fn pin() { 7 | block_on(async { 8 | let future = my_async_fn(); 9 | tokio::pin!(future); 10 | (&mut future).await 11 | }); 12 | } 13 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/macros/loom.rs: -------------------------------------------------------------------------------- 1 | macro_rules! if_loom { 2 | ($($t:tt)*) => {{ 3 | #[cfg(loom)] 4 | const LOOM: bool = true; 5 | #[cfg(not(loom))] 6 | const LOOM: bool = false; 7 | 8 | if LOOM { 9 | $($t)* 10 | } 11 | }} 12 | } 13 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/cors/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-cors" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tower-http = { version = "0.2.0", features = ["cors"] } 11 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/routes-and-handlers-close-together/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-routes-and-handlers-close-together" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/tls/src/tests.rs: -------------------------------------------------------------------------------- 1 | use rocket::local::blocking::Client; 2 | 3 | #[test] 4 | fn hello_world() { 5 | let client = Client::tracked(super::rocket()).unwrap(); 6 | let response = client.get("/").dispatch(); 7 | assert_eq!(response.into_string(), Some("Hello, world!".into())); 8 | } 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/contracts/rpc/runtime-api/README.md: -------------------------------------------------------------------------------- 1 | Runtime API definition required by Contracts RPC extensions. 2 | 3 | This API should be imported and implemented by the runtime, 4 | of a node that wants to use the custom RPC extension 5 | adding Contracts access methods. 6 | 7 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/tests/signal_no_rt.rs: -------------------------------------------------------------------------------- 1 | #![warn(rust_2018_idioms)] 2 | #![cfg(feature = "full")] 3 | #![cfg(unix)] 4 | 5 | use tokio::signal::unix::{signal, SignalKind}; 6 | 7 | #[test] 8 | #[should_panic] 9 | fn no_runtime_panics_creating_signals() { 10 | let _ = signal(SignalKind::hangup()); 11 | } 12 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/databases/README.md: -------------------------------------------------------------------------------- 1 | # Databases Example 2 | 3 | This example makes use of SQLite. You'll need `sqlite3` and its development 4 | headers installed: 5 | 6 | * **macOS:** `brew install sqlite` 7 | * **Debian**, **Ubuntu:** `apt-get install libsqlite3-dev` 8 | * **Arch:** `pacman -S sqlite` 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/trait_constant_invalid_bound_lifetime.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid usage of `#[pallet::constant]`: Expected a type argument 2 | --> $DIR/trait_constant_invalid_bound_lifetime.rs:9:15 3 | | 4 | 9 | type U: Get<'static>; 5 | | ^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/missing_target.rs: -------------------------------------------------------------------------------- 1 | use sp_npos_elections_solution_type::generate_solution_type; 2 | 3 | generate_solution_type!(pub struct TestSolution::< 4 | VoterIndex = u16, 5 | u8, 6 | Accuracy = Perbill, 7 | >(8)); 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/missing_voter.rs: -------------------------------------------------------------------------------- 1 | use sp_npos_elections_solution_type::generate_solution_type; 2 | 3 | generate_solution_type!(pub struct TestSolution::< 4 | u16, 5 | TargetIndex = u8, 6 | Accuracy = Perbill, 7 | >(8)); 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/src/fs/mod.rs: -------------------------------------------------------------------------------- 1 | //! File serving, file accepting, and file metadata types. 2 | 3 | mod file_name; 4 | mod named_file; 5 | mod server; 6 | mod temp_file; 7 | 8 | pub use file_name::*; 9 | pub use named_file::*; 10 | pub use server::relative; 11 | pub use server::*; 12 | pub use temp_file::*; 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.maintain/init.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | echo "*** Initializing WASM build environment" 6 | 7 | if [ -z $CI_PROJECT_NAME ] ; then 8 | rustup update nightly 9 | rustup update stable 10 | fi 11 | 12 | rustup target add wasm32-unknown-unknown --toolchain nightly 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_module_details.stderr: -------------------------------------------------------------------------------- 1 | error: Unexpected tokens, expected one of `::$ident` `::{`, `exclude_parts`, `use_parts`, `=`, `,` 2 | --> $DIR/invalid_module_details.rs:9:17 3 | | 4 | 9 | system: System::(), 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/call_invalid_vis_2.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::call, dispatchable function must be public: `pub fn` 2 | --> $DIR/call_invalid_vis_2.rs:20:3 3 | | 4 | 20 | pub(crate) fn foo(origin: OriginFor) -> DispatchResultWithPostInfo { 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/event_type_invalid_bound.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid `type Event`, associated type `Event` is reserved and must bound: `IsType<::Event>` 2 | --> $DIR/event_type_invalid_bound.rs:9:3 3 | | 4 | 9 | type Event; 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/missing_accuracy.rs: -------------------------------------------------------------------------------- 1 | use sp_npos_elections_solution_type::generate_solution_type; 2 | 3 | generate_solution_type!(pub struct TestSolution::< 4 | VoterIndex = u16, 5 | TargetIndex = u8, 6 | Perbill, 7 | >(8)); 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | members = [ 3 | "core/lib/", 4 | "core/codegen/", 5 | "core/http/", 6 | "contrib/db_pools/codegen/", 7 | "contrib/db_pools/lib/", 8 | "contrib/sync_db_pools/codegen/", 9 | "contrib/sync_db_pools/lib/", 10 | "contrib/dyn_templates/", 11 | "site/tests", 12 | ] 13 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/db_pools/codegen/tests/ui-fail/database-types.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket_db_pools; 2 | 3 | struct Unknown; 4 | 5 | #[derive(Database)] 6 | #[database("foo")] 7 | struct A(Unknown); 8 | 9 | #[derive(Database)] 10 | #[database("bar")] 11 | struct B(Vec); 12 | 13 | fn main() { } 14 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/ecdsa_nistp256_sha256_key_pkcs8.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgz5+60CMzUC7X2U50 3 | S8KIDYQ6MHUtwMTsHcUrbDhLfLahRANCAAQ7QL6wwC1f2Rrq0iXaERQ7wdquz7HY 4 | 1lr8xVr0KK7VM5ll7hTuO0CfL5apbg7UCiu4B5jZtdDKw5NqNIqTJK80 5 | -----END PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_token_after_module.stderr: -------------------------------------------------------------------------------- 1 | error: Unexpected tokens, expected one of `::$ident` `::{`, `exclude_parts`, `use_parts`, `=`, `,` 2 | --> $DIR/invalid_token_after_module.rs:9:18 3 | | 4 | 9 | system: System ? 5 | | ^ 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/db_pools/codegen/tests/ui-fail-stable/database-types.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket_db_pools; 2 | 3 | struct Unknown; 4 | 5 | #[derive(Database)] 6 | #[database("foo")] 7 | struct A(Unknown); 8 | 9 | #[derive(Database)] 10 | #[database("bar")] 11 | struct B(Vec); 12 | 13 | fn main() { } 14 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/templating/templates/hbs/error/404.html.hbs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 404 - hbs 6 | 7 | 8 |

404: Hey! There's nothing here.

9 | The page at {{ uri }} does not exist! 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/allocator/README.md: -------------------------------------------------------------------------------- 1 | Collection of allocator implementations. 2 | 3 | This crate provides the following allocator implementations: 4 | - A freeing-bump allocator: [`FreeingBumpHeapAllocator`](https://docs.rs/sc-allocator/latest/sc_allocator/struct.FreeingBumpHeapAllocator.html) 5 | 6 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_system_module.stderr: -------------------------------------------------------------------------------- 1 | error: `System` pallet declaration is missing. Please add this line: `System: frame_system::{Pallet, Call, Storage, Config, Event},` 2 | --> $DIR/missing_system_module.rs:8:2 3 | | 4 | 8 | / { 5 | 9 | | } 6 | | |_____^ 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/attr_non_empty.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet macro call: expected no attributes, e.g. macro call must be just `#[frame_support::pallet]` or `#[pallet]` 2 | --> $DIR/attr_non_empty.rs:1:26 3 | | 4 | 1 | #[frame_support::pallet [foo]] 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/call_missing_weight.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::call, requires weight attribute i.e. `#[pallet::weight($expr)]` 2 | --> $DIR/call_missing_weight.rs:17:7 3 | | 4 | 17 | pub fn foo(origin: OriginFor) -> DispatchResultWithPostInfo {} 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/consensus/common/README.md: -------------------------------------------------------------------------------- 1 | Common utilities for building and using consensus engines in substrate. 2 | 3 | Much of this crate is _unstable_ and thus the API is likely to undergo 4 | change. Implementors of traits should not rely on the interfaces to remain 5 | the same. 6 | 7 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/swap_voter_target.rs: -------------------------------------------------------------------------------- 1 | use sp_npos_elections_solution_type::generate_solution_type; 2 | 3 | generate_solution_type!(pub struct TestSolution::< 4 | TargetIndex = u16, 5 | VoterIndex = u8, 6 | Accuracy = Perbill, 7 | >(8)); 8 | 9 | fn main() {} 10 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/.github/workflows/labeler.yml: -------------------------------------------------------------------------------- 1 | name: "Pull Request Labeler" 2 | on: 3 | - pull_request_target 4 | 5 | # See .github/labeler.yml file 6 | 7 | jobs: 8 | triage: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/labeler@v3 12 | with: 13 | repo-token: "${{ secrets.GITHUB_TOKEN }}" 14 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/db_pools/codegen/tests/ui-fail-nightly/database-types.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket_db_pools; 2 | 3 | struct Unknown; 4 | 5 | #[derive(Database)] 6 | #[database("foo")] 7 | struct A(Unknown); 8 | 9 | #[derive(Database)] 10 | #[database("bar")] 11 | struct B(Vec); 12 | 13 | fn main() { } 14 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/templating/templates/tera/error/404.html.tera: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 404 - tera 6 | 7 | 8 |

404: Hey! There's nothing here.

9 | The page at {{ uri }} does not exist! 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/abundant_where_param.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | Block = Block1, 8 | UncheckedExtrinsic = Uxt, 9 | {} 10 | } 11 | 12 | fn main() {} 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_system_module.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | } 10 | } 11 | 12 | fn main() {} 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/derive_no_bound_ui/partial_eq.stderr: -------------------------------------------------------------------------------- 1 | error[E0369]: binary operation `==` cannot be applied to type `::C` 2 | --> $DIR/partial_eq.rs:7:2 3 | | 4 | 7 | c: T::C, 5 | | ^ 6 | | 7 | = note: the trait `std::cmp::PartialEq` is not implemented for `::C` 8 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/websockets/assets/script.js: -------------------------------------------------------------------------------- 1 | const socket = new WebSocket('ws://localhost:3000/ws'); 2 | 3 | socket.addEventListener('open', function (event) { 4 | socket.send('Hello Server!'); 5 | }); 6 | 7 | socket.addEventListener('message', function (event) { 8 | console.log('Message from server ', event.data); 9 | }); 10 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail.rs: -------------------------------------------------------------------------------- 1 | #[test] 2 | fn ui() { 3 | let path = match version_check::is_feature_flaggable() { 4 | Some(true) => "ui-fail-nightly", 5 | _ => "ui-fail-stable", 6 | }; 7 | 8 | let t = trybuild::TestCases::new(); 9 | t.compile_fail(format!("tests/{}/*.rs", path)); 10 | } 11 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/forms/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "forms" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | 11 | [dependencies.rocket_dyn_templates] 12 | path = "../../contrib/dyn_templates" 13 | features = ["tera"] 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/call_invalid_return.stderr: -------------------------------------------------------------------------------- 1 | error: expected `DispatchResultWithPostInfo` or `DispatchResult` 2 | --> $DIR/call_invalid_return.rs:17:39 3 | | 4 | 17 | pub fn foo(origin: OriginFor) -> ::DispatchResult { todo!() } 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/tests/fail/macros_dead_code.stderr: -------------------------------------------------------------------------------- 1 | error: function is never used: `f` 2 | --> $DIR/macros_dead_code.rs:6:10 3 | | 4 | 6 | async fn f() {} 5 | | ^ 6 | | 7 | note: the lint level is defined here 8 | --> $DIR/macros_dead_code.rs:1:9 9 | | 10 | 1 | #![deny(dead_code)] 11 | | ^^^^^^^^^ 12 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/benchmarks/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "rocket-benchmarks" 3 | version = "0.0.0" 4 | edition = "2021" 5 | publish = false 6 | 7 | [workspace] 8 | 9 | [[bench]] 10 | name = "main" 11 | path = "src/bench.rs" 12 | harness = false 13 | 14 | [dev-dependencies] 15 | rocket = { path = "../core/lib/" } 16 | criterion = "0.3" 17 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/storage_value_no_generic.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::storage, invalid number of generic generic arguments, expect more that 0 generic arguments. 2 | --> $DIR/storage_value_no_generic.rs:19:16 3 | | 4 | 19 | type Foo = StorageValue; 5 | | ^^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/http/src/parse/checkers.rs: -------------------------------------------------------------------------------- 1 | #[inline(always)] 2 | pub fn is_whitespace(&byte: &char) -> bool { 3 | byte == ' ' || byte == '\t' 4 | } 5 | 6 | #[inline] 7 | pub fn is_valid_token(&c: &char) -> bool { 8 | matches!(c, '0'..='9' | 'A'..='Z' | '^'..='~' | '#'..='\'' 9 | | '!' | '*' | '+' | '-' | '.') 10 | } 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/consensus/slots/README.md: -------------------------------------------------------------------------------- 1 | Slots functionality for Substrate. 2 | 3 | Some consensus algorithms have a concept of *slots*, which are intervals in 4 | time during which certain events can and/or must occur. This crate 5 | provides generic functionality for slots. 6 | 7 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/empty_pallet_path.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | system: , 10 | } 11 | } 12 | 13 | fn main() {} 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/exclude_missspell.stderr: -------------------------------------------------------------------------------- 1 | error: Unexpected tokens, expected one of `::$ident` `::{`, `exclude_parts`, `use_parts`, `=`, `,` 2 | --> $DIR/exclude_missspell.rs:9:24 3 | | 4 | 9 | System: frame_system exclude_part { Call }, 5 | | ^^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.stderr: -------------------------------------------------------------------------------- 1 | error: expected one of: `Pallet`, `Call`, `Storage`, `Event`, `Config`, `Origin`, `Inherent`, `ValidateUnsigned` 2 | --> $DIR/invalid_module_entry.rs:10:23 3 | | 4 | 10 | Balance: balances::{Error}, 5 | | ^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_where_param.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | TypeX = Block, 8 | UncheckedExtrinsic = UncheckedExtrinsic, 9 | {} 10 | } 11 | 12 | fn main() {} 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/type_value_error_in_block.stderr: -------------------------------------------------------------------------------- 1 | error[E0599]: no function or associated item named `new` found for type `u32` in the current scope 2 | --> $DIR/type_value_error_in_block.rs:20:8 3 | | 4 | 20 | u32::new() 5 | | ^^^ function or associated item not found in `u32` 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/tests/pass/macros_main_loop.rs: -------------------------------------------------------------------------------- 1 | use tests_build::tokio; 2 | 3 | #[tokio::main] 4 | async fn main() -> Result<(), ()> { 5 | loop { 6 | if !never() { 7 | return Ok(()); 8 | } 9 | } 10 | } 11 | 12 | fn never() -> bool { 13 | std::time::Instant::now() > std::time::Instant::now() 14 | } 15 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-integration/src/bin/test-process-signal.rs: -------------------------------------------------------------------------------- 1 | // https://github.com/tokio-rs/tokio/issues/3550 2 | fn main() { 3 | for _ in 0..1000 { 4 | let rt = tokio::runtime::Builder::new_current_thread() 5 | .enable_all() 6 | .build() 7 | .unwrap(); 8 | 9 | drop(rt); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/future/trace.rs: -------------------------------------------------------------------------------- 1 | use std::future::Future; 2 | 3 | pub(crate) trait InstrumentedFuture: Future { 4 | fn id(&self) -> Option; 5 | } 6 | 7 | impl InstrumentedFuture for tracing::instrument::Instrumented { 8 | fn id(&self) -> Option { 9 | self.span().id() 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/versioning/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-versioning" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/db_pools/codegen/tests/ui-fail.rs: -------------------------------------------------------------------------------- 1 | #[test] 2 | fn ui() { 3 | let path = match version_check::is_feature_flaggable() { 4 | Some(true) => "ui-fail-nightly", 5 | _ => "ui-fail-stable", 6 | }; 7 | 8 | let t = trybuild::TestCases::new(); 9 | t.compile_fail(format!("tests/{}/*.rs", path)); 10 | } 11 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail/from_form_type_errors.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | struct Unknown; 4 | 5 | #[derive(FromForm)] 6 | struct BadType3 { 7 | field: Unknown, 8 | } 9 | 10 | struct Foo(T); 11 | 12 | #[derive(FromForm)] 13 | struct Other { 14 | field: Foo, 15 | } 16 | 17 | fn main() { } 18 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/todo/migrations/20160720150332_create_tasks_table/up.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE tasks ( 2 | id INTEGER PRIMARY KEY AUTOINCREMENT, 3 | description VARCHAR NOT NULL, 4 | completed BOOLEAN NOT NULL DEFAULT 0 5 | ); 6 | 7 | INSERT INTO tasks (description) VALUES ("demo task"); 8 | INSERT INTO tasks (description) VALUES ("demo task2"); 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.maintain/local-docker-test-network/grafana/provisioning/dashboards/dashboards.yml: -------------------------------------------------------------------------------- 1 | apiVersion: 1 2 | 3 | providers: 4 | - name: 'Prometheus' 5 | orgId: 1 6 | folder: '' 7 | type: file 8 | disableDeletion: false 9 | editable: false 10 | options: 11 | path: /etc/grafana/provisioning/dashboard-definitions 12 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/examples/parallel/README.md: -------------------------------------------------------------------------------- 1 | 2 | # Parallel Tasks Example Pallet 3 | 4 | This example pallet demonstrates parallelizing validation of the enlisted participants (see 5 | `enlist_participants` dispatch). 6 | 7 | **This pallet serves as an example and is not meant to be used in production.** 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/duplicate_exclude.stderr: -------------------------------------------------------------------------------- 1 | error: `Call` was already declared before. Please remove the duplicate declaration 2 | --> $DIR/duplicate_exclude.rs:9:46 3 | | 4 | 9 | System: frame_system exclude_parts { Call, Call }, 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_token_after_name.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | system ? 10 | } 11 | } 12 | 13 | fn main() {} 14 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/argument_not_extractor.stderr: -------------------------------------------------------------------------------- 1 | error[E0277]: the trait bound `bool: FromRequest` is not satisfied 2 | --> tests/fail/argument_not_extractor.rs:4:23 3 | | 4 | 4 | async fn handler(foo: bool) {} 5 | | ^^^^ the trait `FromRequest` is not implemented for `bool` 6 | | 7 | = help: see issue #48214 8 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/contrib/sync_db_pools/codegen/tests/ui-fail.rs: -------------------------------------------------------------------------------- 1 | #[test] 2 | fn ui() { 3 | let path = match version_check::is_feature_flaggable() { 4 | Some(true) => "ui-fail-nightly", 5 | _ => "ui-fail-stable", 6 | }; 7 | 8 | let t = trybuild::TestCases::new(); 9 | t.compile_fail(format!("tests/{}/*.rs", path)); 10 | } 11 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-nightly/from_form_type_errors.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | struct Unknown; 4 | 5 | #[derive(FromForm)] 6 | struct BadType3 { 7 | field: Unknown, 8 | } 9 | 10 | struct Foo(T); 11 | 12 | #[derive(FromForm)] 13 | struct Other { 14 | field: Foo, 15 | } 16 | 17 | fn main() { } 18 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-stable/from_form_type_errors.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | struct Unknown; 4 | 5 | #[derive(FromForm)] 6 | struct BadType3 { 7 | field: Unknown, 8 | } 9 | 10 | struct Foo(T); 11 | 12 | #[derive(FromForm)] 13 | struct Other { 14 | field: Foo, 15 | } 16 | 17 | fn main() { } 18 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/serialization/src/main.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | #[cfg(test)] mod tests; 4 | 5 | mod json; 6 | mod msgpack; 7 | mod uuid; 8 | 9 | #[launch] 10 | fn rocket() -> _ { 11 | rocket::build() 12 | .attach(json::stage()) 13 | .attach(msgpack::stage()) 14 | .attach(uuid::stage()) 15 | } 16 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/todo/README.md: -------------------------------------------------------------------------------- 1 | # Rocket Todo Example 2 | 3 | This example makes use of a SQLite database via `diesel` to store todo tasks. As 4 | a result, you'll need to have `sqlite3` and its headers installed: 5 | 6 | * **OS X:** `brew install sqlite` 7 | * **Debian/Ubuntu:** `apt-get install libsqlite3-dev` 8 | * **Arch:** `pacman -S sqlite` 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.maintain/monitoring/grafana-dashboards/README_dashboard.md: -------------------------------------------------------------------------------- 1 | ## Substrate Dashboard 2 | 3 | Shared templated Grafana dashboards. 4 | 5 | To import the dashboards follow the [Grafana 6 | documentation](https://grafana.com/docs/grafana/latest/reference/export_import/). 7 | You can see an example setup [here](./substrate-networking.json). 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/bin/node-template/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style=space 5 | indent_size=2 6 | tab_width=2 7 | end_of_line=lf 8 | charset=utf-8 9 | trim_trailing_whitespace=true 10 | insert_final_newline = true 11 | 12 | [*.{rs,toml}] 13 | indent_style=tab 14 | indent_size=tab 15 | tab_width=4 16 | max_line_length=100 17 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_module_details_keyword.stderr: -------------------------------------------------------------------------------- 1 | error: expected one of: `Pallet`, `Call`, `Storage`, `Event`, `Config`, `Origin`, `Inherent`, `ValidateUnsigned` 2 | --> $DIR/invalid_module_details_keyword.rs:9:20 3 | | 4 | 9 | system: System::{enum}, 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/no_comma_after_where.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | UncheckedExtrinsic = UncheckedExtrinsic 6 | Block = Block, 7 | NodeBlock = Block, 8 | { 9 | System: system, 10 | } 11 | } 12 | 13 | fn main() {} 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/npos-elections/solution-type/tests/ui/fail/wrong_attribute.rs: -------------------------------------------------------------------------------- 1 | use sp_npos_elections_solution_type::generate_solution_type; 2 | 3 | generate_solution_type!( 4 | #[pages(1)] pub struct TestSolution::< 5 | VoterIndex = u8, 6 | TargetIndex = u16, 7 | Accuracy = Perbill, 8 | >(8) 9 | ); 10 | 11 | fn main() {} 12 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/bin/node-template/scripts/docker_run.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # This script is meant to be run on Unix/Linux based systems 3 | set -e 4 | 5 | echo "*** Start Substrate node template ***" 6 | 7 | cd $(dirname ${BASH_SOURCE[0]})/.. 8 | 9 | docker-compose down --remove-orphans 10 | docker-compose run --rm --service-ports dev $@ 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/double_module_parts.stderr: -------------------------------------------------------------------------------- 1 | error: `Config` was already declared before. Please remove the duplicate declaration 2 | --> $DIR/double_module_parts.rs:10:37 3 | | 4 | 10 | Balance: balances::{Config, Call, Config, Origin}, 5 | | ^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_module_details.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | system: System::(), 10 | } 11 | } 12 | 13 | fn main() {} 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_token_after_module.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | system: System ? 10 | } 11 | } 12 | 13 | fn main() {} 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_module_instance.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | system: System::<>, 10 | } 11 | } 12 | 13 | fn main() {} 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/storage_not_storage_type.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::storage, expected ident: `StorageValue` or `StorageMap` or `StorageDoubleMap` or `StorageNMap` in order to expand metadata, found `u8`. 2 | --> $DIR/storage_not_storage_type.rs:19:16 3 | | 4 | 19 | type Foo = u8; 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-stream/tests/stream_empty.rs: -------------------------------------------------------------------------------- 1 | use tokio_stream::{self as stream, Stream, StreamExt}; 2 | 3 | #[tokio::test] 4 | async fn basic_usage() { 5 | let mut stream = stream::empty::(); 6 | 7 | for _ in 0..2 { 8 | assert_eq!(stream.size_hint(), (0, Some(0))); 9 | assert_eq!(None, stream.next().await); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/net/tcp/mod.rs: -------------------------------------------------------------------------------- 1 | //! TCP utility types. 2 | 3 | pub(crate) mod listener; 4 | 5 | pub(crate) mod socket; 6 | 7 | mod split; 8 | pub use split::{ReadHalf, WriteHalf}; 9 | 10 | mod split_owned; 11 | pub use split_owned::{OwnedReadHalf, OwnedWriteHalf, ReuniteError}; 12 | 13 | pub(crate) mod stream; 14 | pub(crate) use stream::TcpStream; 15 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/templates/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-templates" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | askama = "0.10" 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/changed_in_no_default_method.stderr: -------------------------------------------------------------------------------- 1 | error: There is no 'default' method with this name (without `changed_in` attribute). 2 | The 'default' method is used to call into the latest implementation. 3 | --> $DIR/changed_in_no_default_method.rs:15:6 4 | | 5 | 15 | fn test(data: u64); 6 | | ^^^^ 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/impl_two_traits_with_same_name.stderr: -------------------------------------------------------------------------------- 1 | error: Two traits with the same name detected! The trait name is used to generate its ID. Please rename one trait at the declaration! 2 | --> $DIR/impl_two_traits_with_same_name.rs:30:15 3 | | 4 | 30 | impl second::Api for Runtime { 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/process/kill.rs: -------------------------------------------------------------------------------- 1 | use std::io; 2 | 3 | /// An interface for killing a running process. 4 | pub(crate) trait Kill { 5 | /// Forcefully kills the process. 6 | fn kill(&mut self) -> io::Result<()>; 7 | } 8 | 9 | impl Kill for &mut T { 10 | fn kill(&mut self) -> io::Result<()> { 11 | (**self).kill() 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/fuzz/README.md: -------------------------------------------------------------------------------- 1 | # Fuzzing 2 | 3 | Install `cargo-fuzz`: 4 | 5 | ```sh 6 | cargo install -f cargo-fuzz 7 | ``` 8 | 9 | Run any available target where `$target` is the name of the target and `$n` is 10 | the number of CPUs to use for fuzzing: 11 | 12 | ```sh 13 | cargo fuzz list # get list of targets 14 | cargo fuzz run $target -j $n 15 | ``` 16 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/cookies/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "cookies" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib", features = ["secrets"] } 10 | 11 | [dependencies.rocket_dyn_templates] 12 | path = "../../contrib/dyn_templates" 13 | features = ["handlebars"] 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_module_details_keyword.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | system: System::{enum}, 10 | } 11 | } 12 | 13 | fn main() {} 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/genesis_inconsistent_build_config.stderr: -------------------------------------------------------------------------------- 1 | error: `#[pallet::genesis_config]` and `#[pallet::genesis_build]` attributes must be either both used or both not used, instead genesis_config is unused and genesis_build is used 2 | --> $DIR/genesis_inconsistent_build_config.rs:2:1 3 | | 4 | 2 | mod pallet { 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/mock_advanced_missing_blockid.stderr: -------------------------------------------------------------------------------- 1 | error: If using the `advanced` attribute, it is required that the function takes at least one argument, the `BlockId`. 2 | --> $DIR/mock_advanced_missing_blockid.rs:15:3 3 | | 4 | 15 | fn test(&self) -> Result, ApiError> { 5 | | ^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/no_default_implementation.stderr: -------------------------------------------------------------------------------- 1 | error: A runtime API function cannot have a default implementation! 2 | --> $DIR/no_default_implementation.rs:3:13 3 | | 4 | 3 | fn test() { 5 | | ___________________^ 6 | 4 | | println!("Hey, I'm a default implementation!"); 7 | 5 | | } 8 | | |_________^ 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.maintain/getgoing.sh: -------------------------------------------------------------------------------- 1 | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2 | brew install openssl cmake 3 | curl https://sh.rustup.rs -sSf | sh 4 | source ~/.cargo/env 5 | cargo install --git https://github.com/paritytech/substrate subkey 6 | cargo install --git https://github.com/paritytech/substrate substrate 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/exclude_missspell.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | UncheckedExtrinsic = UncheckedExtrinsic, 6 | Block = Block, 7 | NodeBlock = Block, 8 | { 9 | System: frame_system exclude_part { Call }, 10 | } 11 | } 12 | 13 | fn main() {} 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/decl_module_ui/reserved_keyword_two_times_on_initialize.rs: -------------------------------------------------------------------------------- 1 | frame_support::decl_module! { 2 | pub struct Module for enum Call where origin: T::Origin, system=self { 3 | fn on_initialize() -> Weight { 4 | 0 5 | } 6 | 7 | fn on_initialize() -> Weight { 8 | 0 9 | } 10 | } 11 | } 12 | 13 | fn main() {} 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/event_type_invalid_bound_2.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid `type Event`, associated type `Event` is reserved and must bound: `From` or `From>` or `From>` 2 | --> $DIR/event_type_invalid_bound_2.rs:9:3 3 | | 4 | 9 | type Event: IsType<::Event>; 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/no_duplicate_versions.stderr: -------------------------------------------------------------------------------- 1 | error: Duplicated version attribute 2 | --> $DIR/no_duplicate_versions.rs:7:2 3 | | 4 | 7 | #[version(2)] 5 | | ^ 6 | 7 | error: Previous version with the same number defined here 8 | --> $DIR/no_duplicate_versions.rs:5:2 9 | | 10 | 5 | #[version(2)] 11 | | ^ 12 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/tests/pass/forward_args_and_output.rs: -------------------------------------------------------------------------------- 1 | use tests_build::tokio; 2 | 3 | fn main() {} 4 | 5 | // arguments and output type is forwarded so other macros can access them 6 | 7 | #[tokio::test] 8 | async fn test_fn_has_args(_x: u8) {} 9 | 10 | #[tokio::test] 11 | async fn test_has_output() -> Result<(), Box> { 12 | Ok(()) 13 | } 14 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/reverse-proxy/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-reverse-proxy" 3 | version = "0.1.0" 4 | edition = "2018" 5 | 6 | [dependencies] 7 | axum = { path = "../../axum" } 8 | hyper = { version = "0.14", features = ["full"] } 9 | tokio = { version = "1", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/http/src/uri/fmt/mod.rs: -------------------------------------------------------------------------------- 1 | //! Type safe and URI safe formatting types and traits. 2 | 3 | mod encoding; 4 | mod formatter; 5 | mod from_uri_param; 6 | mod part; 7 | mod uri_display; 8 | 9 | pub use self::formatter::*; 10 | pub use self::from_uri_param::*; 11 | pub use self::part::*; 12 | pub use self::uri_display::*; 13 | 14 | pub(crate) use self::encoding::*; 15 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/tracing/README.md: -------------------------------------------------------------------------------- 1 | Instrumentation implementation for substrate. 2 | 3 | This crate is unstable and the API and usage may change. 4 | 5 | # Usage 6 | 7 | See `sp-tracing` for examples on how to use tracing. 8 | 9 | Currently we provide `Log` (default), `Telemetry` variants for `Receiver` 10 | 11 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/docs/Upgrade.md: -------------------------------------------------------------------------------- 1 | # Upgrade path for you building on substrate 2 | 3 | ## master 4 | - crate rename has been fixed `sp-application-crypto` (was `sc-application-crypto`); `.maintain/rename-crates-for-2.0.sh` has been updated accordingly, you can use it to upgrade to latest naming convention 5 | - crates have been renamed, run `bash .maintain/rename-crates-for-2.0.sh` -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/duplicate_exclude.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | UncheckedExtrinsic = UncheckedExtrinsic, 6 | Block = Block, 7 | NodeBlock = Block, 8 | { 9 | System: frame_system exclude_parts { Call, Call }, 10 | } 11 | } 12 | 13 | fn main() {} 14 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/form/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-form" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | serde = { version = "1.0", features = ["derive"] } 13 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/tls/private/ecdsa_nistp384_sha384_key_pkcs8.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIG2AgEAMBAGByqGSM49AgEGBSuBBAAiBIGeMIGbAgEBBDClF5pKlKs9J5iaOAJE 3 | He7v7RfcSt14yMjrp6y1jntK9j9jzTXAGtHCyWwdW0GYTVmhZANiAATZKfDYqkqF 4 | HPG8CatHyERcr3QzdI1E+PvTHaCfwicih43lVQXDFlwSWyk5qKxW5CelnFGwVN9C 5 | tPik76l/bRS1zpqcFGQ8qppHlO/FVewyawyksuR4Mc+YVyd9PZc/iq8= 6 | -----END PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/conflicting_index.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | UncheckedExtrinsic = UncheckedExtrinsic, 6 | Block = Block, 7 | NodeBlock = Block, 8 | { 9 | System: system::{}, 10 | Pallet1: pallet1::{} = 0, 11 | } 12 | } 13 | 14 | fn main() {} 15 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/no_gaps_in_versions.rs: -------------------------------------------------------------------------------- 1 | use sp_runtime_interface::runtime_interface; 2 | 3 | #[runtime_interface] 4 | trait Test { 5 | #[version(1)] 6 | fn test2() {} 7 | #[version(2)] 8 | fn test2() {} 9 | #[version(3)] 10 | fn test2() {} 11 | 12 | fn test() { } 13 | #[version(3)] 14 | fn test() { } 15 | } 16 | 17 | fn main() {} 18 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/pass/different_request_body_type.rs: -------------------------------------------------------------------------------- 1 | use axum::{body::BoxBody, http::Request}; 2 | use axum_debug::debug_handler; 3 | 4 | #[debug_handler(body = BoxBody)] 5 | async fn handler(_: Request) {} 6 | 7 | #[debug_handler(body = axum::body::BoxBody,)] 8 | async fn handler_with_trailing_comma_and_type_path(_: Request) {} 9 | 10 | fn main() {} 11 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/bin/node-template/scripts/init.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # This script is meant to be run on Unix/Linux based systems 3 | set -e 4 | 5 | echo "*** Initializing WASM build environment" 6 | 7 | if [ -z $CI_PROJECT_NAME ] ; then 8 | rustup update nightly 9 | rustup update stable 10 | fi 11 | 12 | rustup target add wasm32-unknown-unknown --toolchain nightly 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_event_generic_on_module_with_instance.stderr: -------------------------------------------------------------------------------- 1 | error: Instantiable pallet with no generic `Event` cannot be constructed: pallet `Balance` must have generic `Event` 2 | --> $DIR/missing_event_generic_on_module_with_instance.rs:10:3 3 | | 4 | 10 | Balance: balances::::{Event}, 5 | | ^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/pass_by_enum_with_struct.stderr: -------------------------------------------------------------------------------- 1 | error: `PassByEnum` only supports enums as input type. 2 | --> $DIR/pass_by_enum_with_struct.rs:3:10 3 | | 4 | 3 | #[derive(PassByEnum)] 5 | | ^^^^^^^^^^ 6 | | 7 | = note: this error originates in the derive macro `PassByEnum` (in Nightly builds, run with -Z macro-backtrace for more info) 8 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/tests/fail/macros_core_no_default.stderr: -------------------------------------------------------------------------------- 1 | error: The default runtime flavor is `multi_thread`, but the `rt-multi-thread` feature is disabled. 2 | --> $DIR/macros_core_no_default.rs:3:1 3 | | 4 | 3 | #[tokio::main] 5 | | ^^^^^^^^^^^^^^ 6 | | 7 | = note: this error originates in the attribute macro `tokio::main` (in Nightly builds, run with -Z macro-backtrace for more info) 8 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/signal/windows/stub.rs: -------------------------------------------------------------------------------- 1 | //! Stub implementations for the platform API so that rustdoc can build linkable 2 | //! documentation on non-windows platforms. 3 | 4 | use crate::signal::RxFuture; 5 | use std::io; 6 | 7 | pub(super) fn ctrl_c() -> io::Result { 8 | panic!() 9 | } 10 | 11 | pub(super) fn ctrl_break() -> io::Result { 12 | panic!() 13 | } 14 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/http/src/header/mod.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] 2 | mod known_media_types; 3 | mod accept; 4 | mod content_type; 5 | mod header; 6 | mod media_type; 7 | 8 | pub use self::accept::{Accept, QMediaType}; 9 | pub use self::content_type::ContentType; 10 | pub use self::header::{Header, HeaderMap}; 11 | pub use self::media_type::MediaType; 12 | 13 | pub(crate) use self::media_type::Source; 14 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/state/src/main.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | #[cfg(test)] mod tests; 4 | 5 | mod request_local; 6 | mod managed_hit_count; 7 | mod managed_queue; 8 | 9 | #[launch] 10 | fn rocket() -> _ { 11 | rocket::build() 12 | .attach(request_local::stage()) 13 | .attach(managed_hit_count::stage()) 14 | .attach(managed_queue::stage()) 15 | } 16 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | System: system::{Pallet}, 10 | Balance: balances::{Error}, 11 | } 12 | } 13 | 14 | fn main() {} 15 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_origin_generic_on_module_with_instance.stderr: -------------------------------------------------------------------------------- 1 | error: Instantiable pallet with no generic `Origin` cannot be constructed: pallet `Balance` must have generic `Origin` 2 | --> $DIR/missing_origin_generic_on_module_with_instance.rs:10:3 3 | | 4 | 10 | Balance: balances::::{Origin}, 5 | | ^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/more_than_256_modules.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | UncheckedExtrinsic = UncheckedExtrinsic, 6 | Block = Block, 7 | NodeBlock = Block, 8 | { 9 | System: system::{} = 255, 10 | Pallet256: pallet256::{}, 11 | } 12 | } 13 | 14 | fn main() {} 15 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tests-build/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "tests-build" 3 | version = "0.1.0" 4 | authors = ["Tokio Contributors "] 5 | edition = "2018" 6 | publish = false 7 | 8 | [features] 9 | full = ["tokio/full"] 10 | rt = ["tokio/rt", "tokio/macros"] 11 | 12 | [dependencies] 13 | tokio = { path = "../tokio", optional = true } 14 | 15 | [dev-dependencies] 16 | trybuild = "1.0" 17 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/pass/returns_self.rs: -------------------------------------------------------------------------------- 1 | use axum::response::{IntoResponse, Response}; 2 | use axum_debug::debug_handler; 3 | 4 | struct A; 5 | 6 | impl A { 7 | #[debug_handler] 8 | async fn handler() -> Self { 9 | A 10 | } 11 | } 12 | 13 | impl IntoResponse for A { 14 | fn into_response(self) -> Response { 15 | todo!() 16 | } 17 | } 18 | 19 | fn main() {} 20 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/async-graphql/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-async-graphql" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | async-graphql = "2.9.9" 13 | slab = "0.4.3" 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/authority-discovery/README.md: -------------------------------------------------------------------------------- 1 | # Substrate authority discovery 2 | 3 | This crate enables Substrate authorities to discover and directly connect to 4 | other authorities. It is split into two components the [`Worker`] and the 5 | [`Service`]. 6 | 7 | See [`Worker`] and [`Service`] for more documentation. 8 | 9 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 10 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/empty_impl_runtime_apis_call.stderr: -------------------------------------------------------------------------------- 1 | error: No api implementation given! 2 | --> $DIR/empty_impl_runtime_apis_call.rs:17:1 3 | | 4 | 17 | sp_api::impl_runtime_apis! {} 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | | 7 | = note: this error originates in the macro `sp_api::impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info) 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/pass_by_enum_with_value_variant.stderr: -------------------------------------------------------------------------------- 1 | error: `PassByEnum` only supports unit variants. 2 | --> $DIR/pass_by_enum_with_value_variant.rs:3:10 3 | | 4 | 3 | #[derive(PassByEnum)] 5 | | ^^^^^^^^^^ 6 | | 7 | = note: this error originates in the derive macro `PassByEnum` (in Nightly builds, run with -Z macro-backtrace for more info) 8 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | The Tokio project adheres to the [Rust Code of Conduct](https://www.rust-lang.org/policies/code-of-conduct). This describes the minimum behavior expected from all contributors. 4 | 5 | ## Enforcement 6 | 7 | Instances of violations of the Code of Conduct can be reported by contacting the project team at [moderation@tokio.rs](mailto:moderation@tokio.rs). 8 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-stream/tests/stream_once.rs: -------------------------------------------------------------------------------- 1 | use tokio_stream::{self as stream, Stream, StreamExt}; 2 | 3 | #[tokio::test] 4 | async fn basic_usage() { 5 | let mut one = stream::once(1); 6 | 7 | assert_eq!(one.size_hint(), (1, Some(1))); 8 | assert_eq!(Some(1), one.next().await); 9 | 10 | assert_eq!(one.size_hint(), (0, Some(0))); 11 | assert_eq!(None, one.next().await); 12 | } 13 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-util/README.md: -------------------------------------------------------------------------------- 1 | # tokio-util 2 | 3 | Utilities for working with Tokio. 4 | 5 | ## License 6 | 7 | This project is licensed under the [MIT license](LICENSE). 8 | 9 | ### Contribution 10 | 11 | Unless you explicitly state otherwise, any contribution intentionally submitted 12 | for inclusion in Tokio by you, shall be licensed as MIT, without any additional 13 | terms or conditions. 14 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/loom/mod.rs: -------------------------------------------------------------------------------- 1 | //! This module abstracts over `loom` and `std::sync` depending on whether we 2 | //! are running tests or not. 3 | 4 | #![allow(unused)] 5 | 6 | #[cfg(not(all(test, loom)))] 7 | mod std; 8 | #[cfg(not(all(test, loom)))] 9 | pub(crate) use self::std::*; 10 | 11 | #[cfg(all(test, loom))] 12 | mod mocked; 13 | #[cfg(all(test, loom))] 14 | pub(crate) use self::mocked::*; 15 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/tls-rustls/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-tls-rustls" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | axum-server = { version = "0.3", features = ["tls-rustls"] } 10 | tokio = { version = "1", features = ["full"] } 11 | tracing = "0.1" 12 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 13 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/Cargo.toml: -------------------------------------------------------------------------------- 1 | [workspace] 2 | members = [ 3 | "config", 4 | "cookies", 5 | "databases", 6 | "error-handling", 7 | "fairings", 8 | "forms", 9 | "hello", 10 | "manual-routing", 11 | "responders", 12 | "serialization", 13 | "state", 14 | "static-files", 15 | "templating", 16 | "testing", 17 | "tls", 18 | 19 | "pastebin", 20 | "todo", 21 | "chat", 22 | ] 23 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/templating/templates/tera/base.html.tera: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Tera Demo - {{ title }} 6 | 7 | 8 | {% include "tera/nav" %} 9 | 10 | {% block content %}{% endblock content %} 11 | 12 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-macros/README.md: -------------------------------------------------------------------------------- 1 | # Tokio Macros 2 | 3 | Procedural macros for use with Tokio 4 | 5 | ## License 6 | 7 | This project is licensed under the [MIT license](LICENSE). 8 | 9 | ### Contribution 10 | 11 | Unless you explicitly state otherwise, any contribution intentionally submitted 12 | for inclusion in Tokio by you, shall be licensed as MIT, without any additional 13 | terms or conditions. 14 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-test/README.md: -------------------------------------------------------------------------------- 1 | # tokio-test 2 | 3 | Tokio and Futures based testing utilities 4 | 5 | ## License 6 | 7 | This project is licensed under the [MIT license](LICENSE). 8 | 9 | ### Contribution 10 | 11 | Unless you explicitly state otherwise, any contribution intentionally submitted 12 | for inclusion in Tokio by you, shall be licensed as MIT, without any additional 13 | terms or conditions. 14 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/sync/tests/mod.rs: -------------------------------------------------------------------------------- 1 | cfg_not_loom! { 2 | mod atomic_waker; 3 | mod notify; 4 | mod semaphore_batch; 5 | } 6 | 7 | cfg_loom! { 8 | mod loom_atomic_waker; 9 | mod loom_broadcast; 10 | mod loom_list; 11 | mod loom_mpsc; 12 | mod loom_notify; 13 | mod loom_oneshot; 14 | mod loom_semaphore_batch; 15 | mod loom_watch; 16 | mod loom_rwlock; 17 | } 18 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/tests/process_arg0.rs: -------------------------------------------------------------------------------- 1 | #![warn(rust_2018_idioms)] 2 | #![cfg(all(feature = "full", unix))] 3 | 4 | use tokio::process::Command; 5 | 6 | #[tokio::test] 7 | async fn arg0() { 8 | let mut cmd = Command::new("sh"); 9 | cmd.arg0("test_string").arg("-c").arg("echo $0"); 10 | 11 | let output = cmd.output().await.unwrap(); 12 | assert_eq!(output.stdout, b"test_string\n"); 13 | } 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/generics_in_invalid_module.stderr: -------------------------------------------------------------------------------- 1 | error: `Call` is not allowed to have generics. Only the following pallets are allowed to have generics: `Event`, `Origin`, `Config`. 2 | --> $DIR/generics_in_invalid_module.rs:10:36 3 | | 4 | 10 | Balance: balances::::{Call, Origin}, 5 | | ^^^^ 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Question 3 | about: Please use the discussions tab for questions 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | Please post your question as a discussion here: 11 | https://github.com/tokio-rs/tokio/discussions 12 | 13 | 14 | You may also be able to find help here: 15 | https://discord.gg/tokio 16 | https://users.rust-lang.org/ 17 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/global-404-handler/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-global-404-handler" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tower = { version = "0.4", features = ["util"] } 11 | tracing = "0.1" 12 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 13 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/stress-test/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "stress-test" 3 | version = "0.1.0" 4 | authors = ["Tokio Contributors "] 5 | edition = "2018" 6 | publish = false 7 | 8 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 9 | 10 | [dependencies] 11 | tokio = { path = "../tokio/", features = ["full"] } 12 | 13 | [dev-dependencies] 14 | rand = "0.8" 15 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/readme/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-readme" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | serde = { version = "1.0", features = ["derive"] } 10 | serde_json = "1.0.68" 11 | tokio = { version = "1.0", features = ["full"] } 12 | tracing = "0.1" 13 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/double_module_parts.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | System: system::{Pallet}, 10 | Balance: balances::{Config, Call, Config, Origin}, 11 | } 12 | } 13 | 14 | fn main() {} 15 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/runtime-interface/tests/ui/pass_by_inner_with_two_fields.stderr: -------------------------------------------------------------------------------- 1 | error: Only newtype/one field structs are supported by `PassByInner`! 2 | --> $DIR/pass_by_inner_with_two_fields.rs:3:10 3 | | 4 | 3 | #[derive(PassByInner)] 5 | | ^^^^^^^^^^^ 6 | | 7 | = note: this error originates in the derive macro `PassByInner` (in Nightly builds, run with -Z macro-backtrace for more info) 8 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/chat/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-chat" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum", features = ["ws"] } 9 | futures = "0.3" 10 | tokio = { version = "1", features = ["full"] } 11 | tower = { version = "0.4", features = ["util"] } 12 | tracing = "0.1" 13 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 14 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/query-params-with-empty-strings/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-query-params-with-empty-strings" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | serde = { version = "1.0", features = ["derive"] } 11 | tower = { version = "0.4", features = ["util"] } 12 | hyper = "0.14" 13 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/static-file-server/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-static-file-server" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | tower-http = { version = "0.2.0", features = ["fs", "trace"] } 13 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/tracing-aka-logging/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-tracing-aka-logging" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | tower-http = { version = "0.2.0", features = ["trace"] } 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/generics_in_invalid_module.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | System: system::{Pallet}, 10 | Balance: balances::::{Call, Origin}, 11 | } 12 | } 13 | 14 | fn main() {} 15 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/too_many_extractors.stderr: -------------------------------------------------------------------------------- 1 | error: Handlers cannot take more than 16 arguments. Use `(a, b): (ExtractorA, ExtractorA)` to further nest extractors 2 | --> tests/fail/too_many_extractors.rs:5:5 3 | | 4 | 5 | / e1: String, 5 | 6 | | e2: String, 6 | 7 | | e3: String, 7 | 8 | | e4: String, 8 | ... | 9 | 20 | | e16: String, 10 | 21 | | e17: String, 11 | | |________________^ 12 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/tokio-postgres/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-tokio-postgres" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | bb8 = "0.7.1" 13 | bb8-postgres = "0.7.0" 14 | tokio-postgres = "0.7.2" 15 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/templating/templates/tera/index.html.tera: -------------------------------------------------------------------------------- 1 | {% extends "tera/base" %} 2 | 3 | {% block content %} 4 |

Hi {{ name }}!

5 |

Here are your items:

6 |
    7 | {% for s in items %} 8 |
  • {{ s }}
  • 9 | {% endfor %} 10 |
11 | 12 |

Try going to /tera/hello/Your Name

13 | {% endblock content %} 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_event_generic_on_module_with_instance.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | System: system::{Pallet}, 10 | Balance: balances::::{Event}, 11 | } 12 | } 13 | 14 | fn main() {} 15 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/externalities/README.md: -------------------------------------------------------------------------------- 1 | Substrate externalities abstraction 2 | 3 | The externalities mainly provide access to storage and to registered extensions. Extensions 4 | are for example the keystore or the offchain externalities. These externalities are used to 5 | access the node from the runtime via the runtime interfaces. 6 | 7 | This crate exposes the main [`Externalities`] trait. 8 | 9 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/fs/remove_dir.rs: -------------------------------------------------------------------------------- 1 | use crate::fs::asyncify; 2 | 3 | use std::io; 4 | use std::path::Path; 5 | 6 | /// Removes an existing, empty directory. 7 | /// 8 | /// This is an async version of [`std::fs::remove_dir`](std::fs::remove_dir) 9 | pub async fn remove_dir(path: impl AsRef) -> io::Result<()> { 10 | let path = path.as_ref().to_owned(); 11 | asyncify(move || std::fs::remove_dir(path)).await 12 | } 13 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/tests/local-client-access-runtime-in-drop.rs: -------------------------------------------------------------------------------- 1 | use rocket::local::blocking::Client; 2 | 3 | struct SpawnBlockingOnDrop; 4 | 5 | impl Drop for SpawnBlockingOnDrop { 6 | fn drop(&mut self) { 7 | rocket::tokio::task::spawn_blocking(|| ()); 8 | } 9 | } 10 | 11 | #[test] 12 | fn test_access_runtime_in_state_drop() { 13 | Client::debug(rocket::build().manage(SpawnBlockingOnDrop)).unwrap(); 14 | } 15 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/templating/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "templating" 3 | version = "0.0.0" 4 | workspace = "../" 5 | edition = "2021" 6 | publish = false 7 | 8 | [dependencies] 9 | rocket = { path = "../../core/lib" } 10 | 11 | # in your application, you should enable only the template engine(s) used 12 | [dependencies.rocket_dyn_templates] 13 | path = "../../contrib/dyn_templates" 14 | features = ["tera", "handlebars"] 15 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/conflicting_module_name.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | System: system::{Pallet}, 10 | Balance: balances::{Pallet}, 11 | Balance: balances::{Pallet}, 12 | } 13 | } 14 | 15 | fn main() {} 16 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/missing_origin_generic_on_module_with_instance.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | Block = Block, 6 | NodeBlock = Block, 7 | UncheckedExtrinsic = UncheckedExtrinsic 8 | { 9 | System: system::{Pallet}, 10 | Balance: balances::::{Origin}, 11 | } 12 | } 13 | 14 | fn main() {} 15 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/declaring_own_block_with_different_name.stderr: -------------------------------------------------------------------------------- 1 | error: `Block: BlockT` generic parameter will be added automatically by the `decl_runtime_apis!` macro! If you try to use a different trait than the substrate `Block` trait, please rename it locally. 2 | --> $DIR/declaring_own_block_with_different_name.rs:2:19 3 | | 4 | 2 | pub trait Api { 5 | | ^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-util/src/sync/mod.rs: -------------------------------------------------------------------------------- 1 | //! Synchronization primitives 2 | 3 | mod cancellation_token; 4 | pub use cancellation_token::{guard::DropGuard, CancellationToken, WaitForCancellationFuture}; 5 | 6 | mod intrusive_double_linked_list; 7 | 8 | mod mpsc; 9 | pub use mpsc::PollSender; 10 | 11 | mod poll_semaphore; 12 | pub use poll_semaphore::PollSemaphore; 13 | 14 | mod reusable_box; 15 | pub use reusable_box::ReusableBoxFuture; 16 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/tests/net_bind_resource.rs: -------------------------------------------------------------------------------- 1 | #![warn(rust_2018_idioms)] 2 | #![cfg(feature = "full")] 3 | 4 | use tokio::net::TcpListener; 5 | 6 | use std::convert::TryFrom; 7 | use std::net; 8 | 9 | #[test] 10 | #[should_panic] 11 | fn no_runtime_panics_binding_net_tcp_listener() { 12 | let listener = net::TcpListener::bind("127.0.0.1:0").expect("failed to bind listener"); 13 | let _ = TcpListener::try_from(listener); 14 | } 15 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/multipart-form/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-multipart-form" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum", features = ["multipart"] } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | tower-http = { version = "0.2.0", features = ["trace"] } 13 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.github/allowed-actions.js: -------------------------------------------------------------------------------- 1 | // This is a whitelist of GitHub Actions that are approved for use in this project. 2 | // If a new or existing workflow file is updated to use an action or action version 3 | // not listed here, CI will fail. 4 | 5 | module.exports = [ 6 | 'gaurav-nelson/github-action-markdown-link-check@7481451f70251762f149d69596e3e276ebf2b236', // gaurav-nelson/github-action-markdown-link-check@v1.0.8 7 | ] 8 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/conflicting_module_name.stderr: -------------------------------------------------------------------------------- 1 | error: Two pallets with the same name! 2 | --> $DIR/conflicting_module_name.rs:10:3 3 | | 4 | 10 | Balance: balances::{Pallet}, 5 | | ^^^^^^^ 6 | 7 | error: Two pallets with the same name! 8 | --> $DIR/conflicting_module_name.rs:11:3 9 | | 10 | 11 | Balance: balances::{Pallet}, 11 | | ^^^^^^^ 12 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum/src/docs/handlers_intro.md: -------------------------------------------------------------------------------- 1 | In axum a "handler" is an async function that accepts zero or more 2 | ["extractors"](crate::extract) as arguments and returns something that 3 | can be converted [into a response](crate::response). 4 | 5 | Handlers is where your application logic lives and axum applications are built 6 | by routing between handlers. 7 | 8 | [`debug_handler`]: https://docs.rs/axum-macros/latest/axum_macros/attr.debug_handler.html 9 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/lib/tests/typed-uri-docs-redef-issue-1373.rs: -------------------------------------------------------------------------------- 1 | #![allow(dead_code)] // This test is only here to ensure it compiles. 2 | #![allow(unused_variables)] // This test is only here to ensure it compiles. 3 | 4 | mod a { 5 | /// Docs. 6 | #[rocket::post("/typed_uris/")] 7 | fn simple(id: i32) {} 8 | } 9 | 10 | mod b { 11 | /// Docs. 12 | #[rocket::post("/typed_uris/")] 13 | fn simple(id: i32) {} 14 | } 15 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/construct_runtime_ui/conflicting_index_2.rs: -------------------------------------------------------------------------------- 1 | use frame_support::construct_runtime; 2 | 3 | construct_runtime! { 4 | pub enum Runtime where 5 | UncheckedExtrinsic = UncheckedExtrinsic, 6 | Block = Block, 7 | NodeBlock = Block, 8 | { 9 | System: system::{} = 5, 10 | Pallet1: pallet1::{} = 3, 11 | Pallet2: pallet2::{}, 12 | Pallet3: pallet3::{}, 13 | } 14 | } 15 | 16 | fn main() {} 17 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/customize-path-rejection/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-customize-path-rejection" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | serde = { version = "1.0", features = ["derive"] } 11 | serde_json = "1.0" 12 | tracing = "0.1" 13 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 14 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/http-proxy/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-http-proxy" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | hyper = { version = "0.14", features = ["full"] } 11 | tower = { version = "0.4", features = ["make"] } 12 | tracing = "0.1" 13 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 14 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/tests/io_read_exact.rs: -------------------------------------------------------------------------------- 1 | #![warn(rust_2018_idioms)] 2 | #![cfg(feature = "full")] 3 | 4 | use tokio::io::AsyncReadExt; 5 | use tokio_test::assert_ok; 6 | 7 | #[tokio::test] 8 | async fn read_exact() { 9 | let mut buf = Box::new([0; 8]); 10 | let mut rd: &[u8] = b"hello world"; 11 | 12 | let n = assert_ok!(rd.read_exact(&mut buf[..]).await); 13 | assert_eq!(n, 8); 14 | assert_eq!(buf[..], b"hello wo"[..]); 15 | } 16 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/customize-extractor-error/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-customize-extractor-error" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | serde = { version = "1.0", features = ["derive"] } 11 | serde_json = "1.0" 12 | tracing = "0.1" 13 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 14 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/examples/chat/static/reset.css: -------------------------------------------------------------------------------- 1 | html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}ul{list-style:none}button,input,select{margin:0}html{box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}img,video{height:auto;max-width:100%}iframe,button,input{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0} 2 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.maintain/node-template-release.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | export TERM=xterm 6 | PROJECT_ROOT=`git rev-parse --show-toplevel` 7 | 8 | if [ "$#" -ne 1 ]; then 9 | echo "node-template-release.sh path_to_target_archive" 10 | exit 1 11 | fi 12 | 13 | PATH_TO_ARCHIVE=$1 14 | cd $PROJECT_ROOT/.maintain/node-template-release 15 | 16 | cargo run $PROJECT_ROOT/bin/node-template $PROJECT_ROOT/$PATH_TO_ARCHIVE 17 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/call_invalid_origin_type.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid type: expected `OriginFor` 2 | --> $DIR/call_invalid_origin_type.rs:17:22 3 | | 4 | 17 | pub fn foo(origin: u8) {} 5 | | ^^ 6 | 7 | error: expected `OriginFor` 8 | --> $DIR/call_invalid_origin_type.rs:17:22 9 | | 10 | 17 | pub fn foo(origin: u8) {} 11 | | ^^ 12 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/mock_only_one_block_type.stderr: -------------------------------------------------------------------------------- 1 | error: Block type should be the same between all runtime apis. 2 | --> $DIR/mock_only_one_block_type.rs:20:12 3 | | 4 | 20 | impl Api2 for MockApi { 5 | | ^^^^^^ 6 | 7 | error: First block type found here 8 | --> $DIR/mock_only_one_block_type.rs:16:11 9 | | 10 | 16 | impl Api for MockApi { 11 | | ^^^^^ 12 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/tests/io_chain.rs: -------------------------------------------------------------------------------- 1 | #![warn(rust_2018_idioms)] 2 | #![cfg(feature = "full")] 3 | 4 | use tokio::io::AsyncReadExt; 5 | use tokio_test::assert_ok; 6 | 7 | #[tokio::test] 8 | async fn chain() { 9 | let mut buf = Vec::new(); 10 | let rd1: &[u8] = b"hello "; 11 | let rd2: &[u8] = b"world"; 12 | 13 | let mut rd = rd1.chain(rd2); 14 | assert_ok!(rd.read_to_end(&mut buf).await); 15 | assert_eq!(buf, b"hello world"); 16 | } 17 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/websockets/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-websockets" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum", features = ["ws", "headers"] } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | tower-http = { version = "0.2.0", features = ["fs", "trace"] } 13 | headers = "0.3" 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/storage_value_generic_named_and_unnamed.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::storage, invalid generic declaration for storage. Expect only type generics or binding generics, e.g. `` or ``. 2 | --> $DIR/storage_value_generic_named_and_unnamed.rs:19:16 3 | | 4 | 19 | type Foo = StorageValue; 5 | | ^^^^^^^^^^^^ 6 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/trait_no_supertrait.stderr: -------------------------------------------------------------------------------- 1 | error: Invalid pallet::trait, expected explicit `frame_system::Config` as supertrait, found none. (try `pub trait Config: frame_system::Config { ...` or `pub trait Config: frame_system::Config { ...`). To disable this check, use `#[pallet::disable_frame_system_supertrait_check]` 2 | --> $DIR/trait_no_supertrait.rs:7:2 3 | | 4 | 7 | pub trait Config { 5 | | ^^^ 6 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-stream/tests/stream_iter.rs: -------------------------------------------------------------------------------- 1 | use tokio_stream as stream; 2 | use tokio_test::task; 3 | 4 | use std::iter; 5 | 6 | #[tokio::test] 7 | async fn coop() { 8 | let mut stream = task::spawn(stream::iter(iter::repeat(1))); 9 | 10 | for _ in 0..10_000 { 11 | if stream.poll_next().is_pending() { 12 | assert!(stream.is_woken()); 13 | return; 14 | } 15 | } 16 | 17 | panic!("did not yield"); 18 | } 19 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum/src/handler/future.rs: -------------------------------------------------------------------------------- 1 | //! Handler future types. 2 | 3 | use crate::response::Response; 4 | use futures_util::future::{BoxFuture, Map}; 5 | use std::convert::Infallible; 6 | 7 | opaque_future! { 8 | /// The response future for [`IntoService`](super::IntoService). 9 | pub type IntoServiceFuture = 10 | Map< 11 | BoxFuture<'static, Response>, 12 | fn(Response) -> Result, 13 | >; 14 | } 15 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail/catch_type_errors.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | use rocket::Request; 4 | 5 | #[catch(404)] 6 | fn f1(_request: &Request) -> usize { 7 | 10 8 | } 9 | 10 | #[catch(404)] 11 | fn f2(_request: &Request) -> bool { 12 | false 13 | } 14 | 15 | #[catch(404)] 16 | fn f3(_request: bool) -> usize { 17 | 10 18 | } 19 | 20 | #[catch(404)] 21 | fn f4() -> usize { 22 | 10 23 | } 24 | 25 | fn main() { } 26 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/prometheus-metrics/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-prometheus-metrics" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | axum-extra = { path = "../../axum-extra" } 10 | metrics = "0.17" 11 | metrics-exporter-prometheus = "0.7" 12 | tokio = { version = "1.0", features = ["full"] } 13 | tracing = "0.1" 14 | tracing-subscriber = { version = "0.3", features = ["env-filter"] } 15 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/bin/node-template/node/src/main.rs: -------------------------------------------------------------------------------- 1 | //! Substrate Node Template CLI library. 2 | #![warn(missing_docs)] 3 | 4 | mod chain_spec; 5 | #[macro_use] 6 | mod service; 7 | mod cli; 8 | mod command; 9 | mod rpc; 10 | 11 | //////////////////////////////////////////////////////////////////////////////// 12 | 13 | /// 14 | /// todo x: 15 | /// 16 | fn main() -> sc_cli::Result<()> { 17 | /// 18 | /// todo x: 入口 19 | /// 20 | command::run() 21 | } 22 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/mock_only_one_self_type.stderr: -------------------------------------------------------------------------------- 1 | error: Self type should not change between runtime apis 2 | --> $DIR/mock_only_one_self_type.rs:19:23 3 | | 4 | 19 | impl Api2 for MockApi2 { 5 | | ^^^^^^^^ 6 | 7 | error: First self type found here 8 | --> $DIR/mock_only_one_self_type.rs:15:22 9 | | 10 | 15 | impl Api for MockApi { 11 | | ^^^^^^^ 12 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-stream/tests/stream_pending.rs: -------------------------------------------------------------------------------- 1 | use tokio_stream::{self as stream, Stream, StreamExt}; 2 | use tokio_test::{assert_pending, task}; 3 | 4 | #[tokio::test] 5 | async fn basic_usage() { 6 | let mut stream = stream::pending::(); 7 | 8 | for _ in 0..2 { 9 | assert_eq!(stream.size_hint(), (0, None)); 10 | 11 | let mut next = task::spawn(async { stream.next().await }); 12 | assert_pending!(next.poll()); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/future/block_on.rs: -------------------------------------------------------------------------------- 1 | use std::future::Future; 2 | 3 | cfg_rt! { 4 | pub(crate) fn block_on(f: F) -> F::Output { 5 | let mut e = crate::runtime::enter::enter(false); 6 | e.block_on(f).unwrap() 7 | } 8 | } 9 | 10 | cfg_not_rt! { 11 | pub(crate) fn block_on(f: F) -> F::Output { 12 | let mut park = crate::park::thread::CachedParkThread::new(); 13 | park.block_on(f).unwrap() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-nightly/catch_type_errors.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | use rocket::Request; 4 | 5 | #[catch(404)] 6 | fn f1(_request: &Request) -> usize { 7 | 10 8 | } 9 | 10 | #[catch(404)] 11 | fn f2(_request: &Request) -> bool { 12 | false 13 | } 14 | 15 | #[catch(404)] 16 | fn f3(_request: bool) -> usize { 17 | 10 18 | } 19 | 20 | #[catch(404)] 21 | fn f4() -> usize { 22 | 10 23 | } 24 | 25 | fn main() { } 26 | -------------------------------------------------------------------------------- /packages/rocket/rocket-0.5.0-rc.2/core/codegen/tests/ui-fail-stable/catch_type_errors.rs: -------------------------------------------------------------------------------- 1 | #[macro_use] extern crate rocket; 2 | 3 | use rocket::Request; 4 | 5 | #[catch(404)] 6 | fn f1(_request: &Request) -> usize { 7 | 10 8 | } 9 | 10 | #[catch(404)] 11 | fn f2(_request: &Request) -> bool { 12 | false 13 | } 14 | 15 | #[catch(404)] 16 | fn f3(_request: bool) -> usize { 17 | 10 18 | } 19 | 20 | #[catch(404)] 21 | fn f4() -> usize { 22 | 10 23 | } 24 | 25 | fn main() { } 26 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/.maintain/local-docker-test-network/prometheus/prometheus.yml: -------------------------------------------------------------------------------- 1 | global: 2 | scrape_interval: 15s 3 | 4 | scrape_configs: 5 | - job_name: 'substrate-nodes' 6 | static_configs: 7 | - targets: ['validator-a:9615'] 8 | labels: 9 | network: dev 10 | - targets: ['validator-b:9615'] 11 | labels: 12 | network: dev 13 | - targets: ['light-c:9615'] 14 | labels: 15 | network: dev 16 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/derive_no_bound_ui/clone.stderr: -------------------------------------------------------------------------------- 1 | error[E0277]: the trait bound `::C: Clone` is not satisfied 2 | --> tests/derive_no_bound_ui/clone.rs:7:2 3 | | 4 | 7 | c: T::C, 5 | | ^ the trait `Clone` is not implemented for `::C` 6 | | 7 | note: required by `clone` 8 | --> $RUST/core/src/clone.rs 9 | | 10 | | fn clone(&self) -> Self; 11 | | ^^^^^^^^^^^^^^^^^^^^^^^^ 12 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/derive_no_bound_ui/debug.stderr: -------------------------------------------------------------------------------- 1 | error[E0277]: `::C` doesn't implement `std::fmt::Debug` 2 | --> $DIR/debug.rs:7:2 3 | | 4 | 7 | c: T::C, 5 | | ^ `::C` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` 6 | | 7 | = help: the trait `std::fmt::Debug` is not implemented for `::C` 8 | = note: required for the cast to the object type `dyn std::fmt::Debug` 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/hooks_invalid_item.rs: -------------------------------------------------------------------------------- 1 | #[frame_support::pallet] 2 | mod pallet { 3 | use frame_support::pallet_prelude::Hooks; 4 | 5 | #[pallet::config] 6 | pub trait Config: frame_system::Config {} 7 | 8 | #[pallet::pallet] 9 | pub struct Pallet(_); 10 | 11 | #[pallet::hooks] 12 | impl Hooks for Pallet {} 13 | 14 | #[pallet::call] 15 | impl Pallet {} 16 | } 17 | 18 | fn main() { 19 | } 20 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum/src/body/mod.rs: -------------------------------------------------------------------------------- 1 | //! HTTP body utilities. 2 | 3 | mod stream_body; 4 | 5 | pub use self::stream_body::StreamBody; 6 | 7 | #[doc(no_inline)] 8 | pub use http_body::{Body as HttpBody, Empty, Full}; 9 | 10 | #[doc(no_inline)] 11 | pub use hyper::body::Body; 12 | 13 | #[doc(no_inline)] 14 | pub use bytes::Bytes; 15 | 16 | #[doc(inline)] 17 | pub use axum_core::body::{boxed, BoxBody}; 18 | 19 | pub(crate) fn empty() -> BoxBody { 20 | boxed(Empty::new()) 21 | } 22 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/store_trait_leak_private.stderr: -------------------------------------------------------------------------------- 1 | error[E0446]: private type `_GeneratedPrefixForStorageFoo` in public interface 2 | --> $DIR/store_trait_leak_private.rs:11:37 3 | | 4 | 11 | #[pallet::generate_store(pub trait Store)] 5 | | ^^^^^ can't leak private type 6 | ... 7 | 20 | #[pallet::storage] 8 | | ------- `_GeneratedPrefixForStorageFoo` declared as private 9 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/authority-discovery/src/worker/schema/dht-v1.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package authority_discovery_v1; 4 | 5 | // First we need to serialize the addresses in order to be able to sign them. 6 | message AuthorityAddresses { 7 | repeated bytes addresses = 1; 8 | } 9 | 10 | // Then we need to serialize addresses and signature to send them over the wire. 11 | message SignedAuthorityAddresses { 12 | bytes addresses = 1; 13 | bytes signature = 2; 14 | } -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/frame/support/test/tests/pallet_ui/mod_not_inlined.stderr: -------------------------------------------------------------------------------- 1 | error[E0658]: non-inline modules in proc macro input are unstable 2 | --> $DIR/mod_not_inlined.rs:2:1 3 | | 4 | 2 | mod foo; 5 | | ^^^^^^^^ 6 | | 7 | = note: see issue #54727 for more information 8 | 9 | error: Invalid pallet definition, expected mod to be inlined. 10 | --> $DIR/mod_not_inlined.rs:2:1 11 | | 12 | 2 | mod foo; 13 | | ^^^ 14 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/api/test/tests/ui/mock_only_self_reference.rs: -------------------------------------------------------------------------------- 1 | use substrate_test_runtime_client::runtime::Block; 2 | 3 | sp_api::decl_runtime_apis! { 4 | pub trait Api { 5 | fn test(data: u64); 6 | fn test2(data: u64); 7 | } 8 | } 9 | 10 | struct MockApi; 11 | 12 | sp_api::mock_impl_runtime_apis! { 13 | impl Api for MockApi { 14 | fn test(self, data: u64) {} 15 | 16 | fn test2(&mut self, data: u64) {} 17 | } 18 | } 19 | 20 | fn main() {} 21 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/primitives/panic-handler/README.md: -------------------------------------------------------------------------------- 1 | Custom panic hook with bug report link 2 | 3 | This crate provides the [`set`] function, which wraps around [`std::panic::set_hook`] and 4 | sets up a panic hook that prints a backtrace and invites the user to open an issue to the 5 | given URL. 6 | 7 | By default, the panic handler aborts the process by calling [`std::process::exit`]. This can 8 | temporarily be disabled by using an [`AbortGuard`]. 9 | 10 | License: Apache-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio-stream/tests/support/mpsc.rs: -------------------------------------------------------------------------------- 1 | use async_stream::stream; 2 | use tokio::sync::mpsc::{self, UnboundedSender}; 3 | use tokio_stream::Stream; 4 | 5 | pub fn unbounded_channel_stream() -> (UnboundedSender, impl Stream) { 6 | let (tx, mut rx) = mpsc::unbounded_channel(); 7 | 8 | let stream = stream! { 9 | while let Some(item) = rx.recv().await { 10 | yield item; 11 | } 12 | }; 13 | 14 | (tx, stream) 15 | } 16 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/sse/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-sse" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum", features = ["headers"] } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | tower-http = { version = "0.2.0", features = ["fs", "trace"] } 13 | futures = "0.3" 14 | tokio-stream = "0.1" 15 | headers = "0.3" 16 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/unix-domain-socket/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-unix-domain-socket" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum" } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | hyper = { version = "0.14", features = ["full"] } 13 | tower = { version = "0.4", features = ["util"] } 14 | futures = "0.3" 15 | -------------------------------------------------------------------------------- /packages/substrate/substrate-monthly-2022-02/client/block-builder/README.md: -------------------------------------------------------------------------------- 1 | Substrate block builder 2 | 3 | This crate provides the [`BlockBuilder`] utility and the corresponding runtime api 4 | [`BlockBuilder`](https://docs.rs/sc-block-builder/latest/sc_block_builder/struct.BlockBuilder.html).Error 5 | 6 | The block builder utility is used in the node as an abstraction over the runtime api to 7 | initialize a block, to push extrinsics and to finalize a block. 8 | 9 | License: GPL-3.0-or-later WITH Classpath-exception-2.0 -------------------------------------------------------------------------------- /packages/tokio/tokio-1.14.1/tokio/src/fs/read_link.rs: -------------------------------------------------------------------------------- 1 | use crate::fs::asyncify; 2 | 3 | use std::io; 4 | use std::path::{Path, PathBuf}; 5 | 6 | /// Reads a symbolic link, returning the file that the link points to. 7 | /// 8 | /// This is an async version of [`std::fs::read_link`][std] 9 | /// 10 | /// [std]: std::fs::read_link 11 | pub async fn read_link(path: impl AsRef) -> io::Result { 12 | let path = path.as_ref().to_owned(); 13 | asyncify(move || std::fs::read_link(path)).await 14 | } 15 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/axum-debug/tests/fail/generics.stderr: -------------------------------------------------------------------------------- 1 | error: `#[axum_debug::debug_handler]` doesn't support generic functions 2 | --> tests/fail/generics.rs:4:17 3 | | 4 | 4 | async fn handler() {} 5 | | ^^^ 6 | 7 | error[E0282]: type annotations needed 8 | --> tests/fail/generics.rs:4:10 9 | | 10 | 4 | async fn handler() {} 11 | | ----- ^^^^^^^ cannot infer type for type parameter `T` declared on the function `handler` 12 | | | 13 | | consider giving `future` a type 14 | -------------------------------------------------------------------------------- /packages/axum/axum-v0.4.5/examples/jwt/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "example-jwt" 3 | version = "0.1.0" 4 | edition = "2018" 5 | publish = false 6 | 7 | [dependencies] 8 | axum = { path = "../../axum", features = ["headers"] } 9 | tokio = { version = "1.0", features = ["full"] } 10 | tracing = "0.1" 11 | tracing-subscriber = { version="0.3", features = ["env-filter"] } 12 | serde = { version = "1.0", features = ["derive"] } 13 | serde_json = "1.0" 14 | headers = "0.3" 15 | jsonwebtoken = "7" 16 | once_cell = "1.8" 17 | --------------------------------------------------------------------------------