Commit Graph

479 Commits

Author SHA1 Message Date
Sebastian Thiel
0bd7f20048 fix(makefile): use PYTHONPATH for mako invocation
That way, it will find its resources.
2015-10-16 15:52:24 +02:00
Sebastian Thiel
53c27da2e7 fix(util.py): improve version and library name handling
We can now deal with versions having the 'alpha' or 'beta' suffix.
It's rather hard-coded, but solves the problem for now.

Related to #126
2015-10-16 15:45:12 +02:00
Sebastian Thiel
e4f89ce0c6 doc(presentation) using reveal.js 2015-10-05 17:46:46 +02:00
Sebastian Thiel
a8d333f916 chore(codegen): code compiles with rust 1.3/serde 0.6 2015-09-29 11:35:13 +02:00
Sebastian Thiel
8dab8c0124 fix(serde): update to latest serde/rust 2015-09-29 11:28:34 +02:00
Sebastian Thiel
7754a160c9 doc(README): stackshare.io badge
I like it ! It's super useful, especially when deciding which tools to
use in a new project.
2015-09-11 08:39:18 +02:00
Sebastian Thiel
aecda18821 chore(publish): re-publish lib crates at latest version
Closes #124
cli-v0.3.2 api-v0.1.9
2015-08-08 12:39:31 +02:00
Sebastian Thiel
08d65ba62b chore(source): add source at latest version 2015-08-08 11:50:37 +02:00
Sebastian Thiel
8ab4fd0bd4 fix(serde-up): update to serde 0.5.0
Serde move all json code into a separate crate that we are now using
as well.
2015-08-08 10:55:21 +02:00
Sebastian Thiel
62b63b251a chore(json-update): latest json files
This also adds a usable version of the genomics API, which was empty
previously (and if I recall correctly).
2015-07-21 18:36:44 +02:00
Sebastian Thiel
152cdd848a imp(cli): pretty-print errors in debug mode 2015-07-21 18:21:52 +02:00
Sebastian Thiel
e46535917c chore(code-update): upgrade to latest hyper+clap 2015-07-15 09:52:55 +02:00
Sebastian Thiel
be894becc3 fix(clap-up): use clap 1.0.3
* `SubCommand::new(...)` was renamed to `SubCommand::with_name(...)`
  which actually is now consistent with everything else
  (e.g. `Arg::with_name(...)`)
2015-07-15 09:51:01 +02:00
Sebastian Thiel
e129a7d3ae fix(hyper-up): compatibility with hyper 0.6.4
* Signature of `client::Response` changed and now requires a
  `hyper::Url` as well.

 Closes #123
2015-07-15 09:50:00 +02:00
Sebastian Thiel
2575d5abe7 Merge branch 'master' of https://github.com/Byron/google-apis-rs 2015-07-15 09:22:05 +02:00
Sebastian Thiel
defbeaa630 chore(cargo): configure to use wait-lock
This allows to build everything concurrently without failure provided
the latest cargo is used.

https://github.com/rust-lang/cargo/pull/1764

It's still very early in development, but works for me nevertheless.

[skip ci]
2015-06-28 21:56:43 +02:00
Sebastian Thiel
0f61fa4c95 fix(deploy): adjust linux script to target dir
Previously it attempted to find build-artifacts in
the 'gen' directory, now these are all found in
'target', provided cargo 0.3.0 is used.

[skip ci]
2015-06-27 08:56:04 +02:00
Sebastian Thiel
6393bbf7f6 chore(code-update): latest version of v0.3.1 code
* also fixed OSX deployment utility to deal with target folder
  as primary location for build-artifacts

[skip ci]
2015-06-27 08:51:09 +02:00
Sebastian Thiel
337f167e6c chore(versionup): CLI v0.3.1 cli-v0.3.1 2015-06-26 16:11:42 +02:00
Sebastian Thiel
7d58d66025 chore(json-update): update json and regen all code 2015-06-26 16:08:25 +02:00
Sebastian Thiel
615ac64ec1 fix(cli): flush output stream on CLI output
For some reason, this is now a requirement - previously this didn't
seem to be necessary.

Don't know what changed there ... and it's odd it doesn't flush
when the process is going down or the handle is destroyed.
2015-06-26 16:00:12 +02:00
Sebastian Thiel
d0491a4950 fix(hyper-up): work with hyper v0.6.0
Currently the latter actually fails to link on OSX, and requires a local
override with [this fix](https://goo.gl/OTExmN).
2015-06-26 15:49:30 +02:00
Sebastian Thiel
27fdd8ee0c fix(rustup): type-inference fails on empty vec
Previously this wasn't the case, as the type could be inferred by the
type of the parent-vector to extend.

Apparently this feature was removed, probably for good reason.
2015-06-21 17:55:46 +02:00
Sebastian Thiel
a566b70273 fix(deps): make statement shell compatible
The previous one actually required bash, instead of sh
2015-06-21 15:21:10 +02:00
Sebastian Thiel
1180314275 chore(make-docs): adjust to build.target-dir
Thanks to the latest cargo 0.3.0, it's possible to keep everything
in the stanard doc output directory, which essentially collects
everything for us.

This creatly reduces the space required to hold all documentation, and
is in fact quite beatiful.
2015-06-21 14:52:34 +02:00
Sebastian Thiel
31f22b1535 chore(cargo): one target dir for all projects
Starting from cargo 0.3.0, one can override the target-directory
to be an absolute path, forcing all output to be dumped into
one and the same target dir.

That way, all dependencies are shared among the projects, saving
4 to 7 minutes per project in debug and release mode respectively.
2015-06-21 13:26:16 +02:00
Sebastian Thiel
d0fb7a5ccc chore(cli): cli code update 2015-06-19 18:04:55 +02:00
Sebastian Thiel
62db3ae87c fix(cli): add type annotation
It seems to be required when building with an older rustc version.
This did work in nightly, and just seems to be some sort of limiation
in stable.
2015-06-19 18:03:55 +02:00
Sebastian Thiel
d1cf8360f9 chore(cargo): published latest versions cli-v0.3.0 api-v0.1.8 2015-06-19 16:37:33 +02:00
Sebastian Thiel
3484fecf9c chore(code-update):added latest version of api+cli
APIs have additional files thanks to the build-script
requirement.
CLI has just seen minor changes though, making it
usable with a stable compiler.
2015-06-19 13:27:40 +02:00
Sebastian Thiel
e336d37d13 Merge branch 'next' 2015-06-19 13:25:58 +02:00
Sebastian Thiel
ef3fb39a4a Merge branch 'syntex' into next 2015-06-19 13:25:44 +02:00
Sebastian Thiel
d6ddff240d chore(version): api+cli increment
CLI was incremented to 0.3.0, just to signal usage of the latest clap-rs
as well as the update of the used API implememtation.

In that moment we also got rid of the json-tools dependency - it
required unstable features, and I was not willing to enforce making
it stable just yet.
2015-06-19 13:25:08 +02:00
Sebastian Thiel
6e669ced2a doc(README): update info about rust stable
Yes, it's fully supported now.
2015-06-19 12:59:51 +02:00
Sebastian Thiel
8aba8a5c75 Merge branch 'master' into syntex 2015-06-19 12:57:12 +02:00
Sebastian Thiel
1f9dc06a57 chore(travis): explicitly use stable rust
This would be the default, but I want to be sure everyone sees
stable is what we need.
2015-06-19 12:56:34 +02:00
Sebastian Thiel
a9e0be6583 fix(cli): work on stable
CLI was slightly adjusted to not use unstable features.
Fortunately, there is no serde magic happening, which allows
us to keep it simple without using a build script.
2015-06-19 12:55:00 +02:00
Sebastian Thiel
2ad8d887cd fix(api): minor fixes
* Mime crate must be used in the same version hyper uses
* made attempted move a borrow
2015-06-19 11:41:29 +02:00
Sebastian Thiel
5483e32832 fix(api): expanded header implementation
Now it compiles to the point where `Mime` appears as duplicate type,
for some reason.
2015-06-19 11:34:57 +02:00
Sebastian Thiel
b0a41c4e78 fix(api): first big step towards syntex
Even though there is a bug that caues {} to be used in stead of
(),
when exanding macros, which causes syntax errors that we have to
workaround, it's not a real issue.

What's happening additionally is missing hyper macros, which
now have to be expanded manually. Shouldn't be a problem,
pretty-printing when compiling is made for just that ;).

No, it's sad that `include!()` works so badly, it makes
using serde so difficult ... it's no fun i must say.

Just for stable ... I am not sure if it is worth it."
2015-06-18 22:51:17 +02:00
Sebastian Thiel
5c798d5fb6 docs(README): information about unstable rustc
Explicitly state that a nightly or beta rust toolchain is required
for successful builds.

Closes #120
2015-05-26 13:19:22 +02:00
Sebastian Thiel
267868cea3 Merge branch 'master' into next 2015-05-18 10:49:24 +02:00
William Orr
ed0debe999 chore(dependencies): bump hyper dep to 0.5.0
google-apis-rs no longer builds with hyper 0.4.0, due to the use of a
now-undefined macro
2015-05-18 10:31:17 +02:00
Sebastian Thiel
129fd38e00 imp(CLI): disallow empty values explicitly
[skip ci]
2015-05-18 10:19:38 +02:00
Sebastian Thiel
b858286f6e Merge branch 'worr-bug/clean-target'
[skip ci]
2015-05-18 10:11:33 +02:00
Sebastian Thiel
d9ed001b46 fix(make): clean was depending on unknown targets
There are no per-program-type docs clean, just made it depend on
docs-all-clean.

Also added the `docs-api|cli` target to the generated per-program-type
make help. It was just missing, even though it existed.
2015-05-18 10:11:02 +02:00
William Orr
bcf90cbcc8 fix(make): fix clean target for docs/cli
clean-all-docs and clean-all-cli aren't valid targets. The current mako
template causes `make clean` to abend reporting that it can't make these
targets.
2015-05-17 14:18:51 -07:00
Sebastian Thiel
2cc4807234 fix(API): URL substitution handling
Previously we would remove the wrong parameters when attempting to
remove only those parameters that have been used in the URL
substitution.

The code we have now is more idiomatic and appears to be removing the
correct parameters.

Closes #114
[skip ci]
2015-05-13 10:11:20 +02:00
Sebastian Thiel
ca36dbc505 feat(config): improved structure setter code
We save about 30% of CLI code just because we offload the work of
settings structures into serde, building a generic `json::Value` to
contain all the data, and then let serde do the deserialization for us.

All we need for that is some information we let the generator provide
and translate it into the runtime.

Closes #111
2015-05-13 08:45:57 +02:00
Sebastian Thiel
d0b69af413 refactor(config):OK version of json value setter
However, we don't set the correct field names yet, and are lacking
a remapping of CLI field names to struct field names before any
testing makes sense.
2015-05-13 07:51:08 +02:00