{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/24788","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/24788/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/24788/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/24788/events","html_url":"https://github.com/rust-lang/rust/issues/24788","id":70806956,"number":24788,"title":"Cargo fails to build","user":{"login":"kstenerud","id":245857,"avatar_url":"https://avatars.githubusercontent.com/u/245857?v=3","gravatar_id":"","url":"https://api.github.com/users/kstenerud","html_url":"https://github.com/kstenerud","followers_url":"https://api.github.com/users/kstenerud/followers","following_url":"https://api.github.com/users/kstenerud/following{/other_user}","gists_url":"https://api.github.com/users/kstenerud/gists{/gist_id}","starred_url":"https://api.github.com/users/kstenerud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kstenerud/subscriptions","organizations_url":"https://api.github.com/users/kstenerud/orgs","repos_url":"https://api.github.com/users/kstenerud/repos","events_url":"https://api.github.com/users/kstenerud/events{/privacy}","received_events_url":"https://api.github.com/users/kstenerud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-04-24T22:12:32Z","updated_at":"2015-08-13T12:47:00Z","closed_at":"2015-04-24T23:02:39Z","body":"### System:\r\nMacbook pro running OSX 10.9.5\r\n\r\n### Rust version:\r\n1.0.0-beta.2 (Mac installer)\r\n\r\n### Meta:\r\n    $ rustc --version --verbose\r\n    rustc 1.0.0-beta.2 (e9080ec39 2015-04-16) (built 2015-04-16)\r\n    binary: rustc\r\n    commit-hash: e9080ec39d9a44eb0773d648b348575b19f655e5\r\n    commit-date: 2015-04-16\r\n    build-date: 2015-04-16\r\n    host: x86_64-apple-darwin\r\n    release: 1.0.0-beta.2\r\n\r\n### Steps to reproduce:\r\n\r\n1. Generate simple .rs file as per (http://doc.rust-lang.org/1.0.0-beta.2/book/hello-world.html)\r\n2. Generate Cargo.toml file as per (http://doc.rust-lang.org/1.0.0-beta.2/book/hello-cargo.html)\r\n3. Run `cargo build`\r\n\r\n### Expected result:\r\nCargo builds `target/debug/hello_world`\r\n\r\n### Actual result:\r\nCargo fails with the following error:\r\n\r\n    $ cargo build\r\n    failed to parse manifest at `/Users/karl/Projects/rust/hello/Cargo.toml`\r\n\r\n    Caused by:\r\n      either a [lib] or [[bin]] section must be present\r\n\r\n### Note also:\r\nIf I put \"1.0\" in the version field of `Cargo.toml`, it fails with the following error:\r\n\r\n    $ cargo build\r\n    failed to parse manifest at `/Users/karl/Projects/rust/hello/Cargo.toml`\r\n\r\n    Caused by:\r\n      cannot parse '1.0' as a semver for the key `package.version`\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/130657312","html_url":"https://github.com/rust-lang/rust/issues/24788#issuecomment-130657312","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/24788","id":130657312,"user":{"login":"ishankhare07","id":7482025,"avatar_url":"https://avatars.githubusercontent.com/u/7482025?v=3","gravatar_id":"","url":"https://api.github.com/users/ishankhare07","html_url":"https://github.com/ishankhare07","followers_url":"https://api.github.com/users/ishankhare07/followers","following_url":"https://api.github.com/users/ishankhare07/following{/other_user}","gists_url":"https://api.github.com/users/ishankhare07/gists{/gist_id}","starred_url":"https://api.github.com/users/ishankhare07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishankhare07/subscriptions","organizations_url":"https://api.github.com/users/ishankhare07/orgs","repos_url":"https://api.github.com/users/ishankhare07/repos","events_url":"https://api.github.com/users/ishankhare07/events{/privacy}","received_events_url":"https://api.github.com/users/ishankhare07/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T12:47:00Z","updated_at":"2015-08-13T12:47:00Z","body":"@alexcrichton thanks, that worked"}}