{"id":16116255,"url":"https://github.com/frol/rust-futures03-wrapper-test","last_synced_at":"2025-06-14T14:04:19.951Z","repository":{"id":139346716,"uuid":"188882602","full_name":"frol/rust-futures03-wrapper-test","owner":"frol","description":"Broken Futures03 wrapper snippet","archived":false,"fork":false,"pushed_at":"2019-05-27T20:23:08.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-14T14:04:19.092Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-27T17:15:38.000Z","updated_at":"2019-05-27T20:23:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"aea7060b-8302-4b6e-9117-7eeba85ad862","html_url":"https://github.com/frol/rust-futures03-wrapper-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frol/rust-futures03-wrapper-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frol%2Frust-futures03-wrapper-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frol%2Frust-futures03-wrapper-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frol%2Frust-futures03-wrapper-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frol%2Frust-futures03-wrapper-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frol","download_url":"https://codeload.github.com/frol/rust-futures03-wrapper-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frol%2Frust-futures03-wrapper-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259827506,"owners_count":22917709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T20:21:47.338Z","updated_at":"2025-06-14T14:04:19.867Z","avatar_url":"https://github.com/frol.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"NOTE: This is a snippet of Rust Futures 0.3 wrapper code that I cannot get working...\n\n```\nerror[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements\n  --\u003e src/main.rs:10:23\n   |\n10 |         Box::new(self.inner().boxed().compat())\n   |                       ^^^^^\n   |\nnote: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the method body at 9:5...\n  --\u003e src/main.rs:9:5\n   |\n9  | /     fn wrapper(\u0026self) -\u003e Box\u003cFuture\u003cItem = u8, Error = String\u003e\u003e {\n10 | |         Box::new(self.inner().boxed().compat())\n11 | |     }\n   | |_____^\nnote: ...so that reference does not outlive borrowed content\n  --\u003e src/main.rs:10:18\n   |\n10 |         Box::new(self.inner().boxed().compat())\n   |                  ^^^^\n   = note: but, the lifetime must be valid for the static lifetime...\n   = note: ...so that the expression is assignable:\n           expected std::boxed::Box\u003c(dyn futures::future::Future\u003cError = std::string::String, Item = u8\u003e + 'static)\u003e\n              found std::boxed::Box\u003cdyn futures::future::Future\u003cError = std::string::String, Item = u8\u003e\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrol%2Frust-futures03-wrapper-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrol%2Frust-futures03-wrapper-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrol%2Frust-futures03-wrapper-test/lists"}