{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/3208","repository_url":"https://api.github.com/repos/rust-lang/cargo","labels_url":"https://api.github.com/repos/rust-lang/cargo/issues/3208/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/cargo/issues/3208/comments","events_url":"https://api.github.com/repos/rust-lang/cargo/issues/3208/events","html_url":"https://github.com/rust-lang/cargo/issues/3208","id":183623231,"number":3208,"title":"build.rs won't run if lib.rs if missing","user":{"login":"raphaelcohn","id":1307097,"avatar_url":"https://avatars.githubusercontent.com/u/1307097?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelcohn","html_url":"https://github.com/raphaelcohn","followers_url":"https://api.github.com/users/raphaelcohn/followers","following_url":"https://api.github.com/users/raphaelcohn/following{/other_user}","gists_url":"https://api.github.com/users/raphaelcohn/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelcohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelcohn/subscriptions","organizations_url":"https://api.github.com/users/raphaelcohn/orgs","repos_url":"https://api.github.com/users/raphaelcohn/repos","events_url":"https://api.github.com/users/raphaelcohn/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelcohn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-18T08:38:52Z","updated_at":"2016-10-18T11:32:56Z","closed_at":null,"body":"Cargo won't compile a dependency if `lib.rs` is missing, confusingly reporting that it can't validate the manifest. This makes it difficult, if not impossible, to have a `build.rs` which generates `lib.rs` without a non-Cargo preparation step (eg `touch src/lib.rs`).\r\n\r\nIn my case, for the FFI bindings for DPDK, I need to generate them as part of the build as I'm using a forked DPDK with fixes to make it usable to both Rust and with musl."},"comment":{"url":"https://api.github.com/repos/rust-lang/cargo/issues/comments/254481348","html_url":"https://github.com/rust-lang/cargo/issues/3208#issuecomment-254481348","issue_url":"https://api.github.com/repos/rust-lang/cargo/issues/3208","id":254481348,"user":{"login":"raphaelcohn","id":1307097,"avatar_url":"https://avatars.githubusercontent.com/u/1307097?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelcohn","html_url":"https://github.com/raphaelcohn","followers_url":"https://api.github.com/users/raphaelcohn/followers","following_url":"https://api.github.com/users/raphaelcohn/following{/other_user}","gists_url":"https://api.github.com/users/raphaelcohn/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelcohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelcohn/subscriptions","organizations_url":"https://api.github.com/users/raphaelcohn/orgs","repos_url":"https://api.github.com/users/raphaelcohn/repos","events_url":"https://api.github.com/users/raphaelcohn/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelcohn/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T11:32:56Z","updated_at":"2016-10-18T11:32:56Z","body":"I probably can use a `pub use` - thank you for the suggestion. However, that seems to be very much a workaround. I don't really understand your point about `src/lib.rs` being used to implicitly define a target. Is there more of an explanation you can give me?"}}
{"actor":{"display_login":"raphaelcohn"}}