{"action":"opened","issue":{"url":"https://api.github.com/repos/servo/rust-url/issues/136","labels_url":"https://api.github.com/repos/servo/rust-url/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/servo/rust-url/issues/136/comments","events_url":"https://api.github.com/repos/servo/rust-url/issues/136/events","html_url":"https://github.com/servo/rust-url/issues/136","id":117706374,"number":136,"title":"Compile time url parsing 'url!' macro","user":{"login":"frewsxcv","id":416575,"avatar_url":"https://avatars.githubusercontent.com/u/416575?v=3","gravatar_id":"","url":"https://api.github.com/users/frewsxcv","html_url":"https://github.com/frewsxcv","followers_url":"https://api.github.com/users/frewsxcv/followers","following_url":"https://api.github.com/users/frewsxcv/following{/other_user}","gists_url":"https://api.github.com/users/frewsxcv/gists{/gist_id}","starred_url":"https://api.github.com/users/frewsxcv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frewsxcv/subscriptions","organizations_url":"https://api.github.com/users/frewsxcv/orgs","repos_url":"https://api.github.com/users/frewsxcv/repos","events_url":"https://api.github.com/users/frewsxcv/events{/privacy}","received_events_url":"https://api.github.com/users/frewsxcv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T23:31:04Z","updated_at":"2015-11-18T23:31:04Z","closed_at":null,"body":"Inspired by [sfackler/rust-postgres-macros](https://github.com/sfackler/rust-postgres-macros) which is a compile time SQL parser\r\n\r\nThere are ton of instances in servo, where we do something like `Url::parse(\"http://mozilla.com\").unwrap()`. It'd be great if we could do that validation at compile time with a macro (e.g. `url!(\"http://mozilla.com\")`).\r\n\r\nI have no idea how feasible this is, just throwing around the idea."}}