Commit Graph

457 Commits

Author SHA1 Message Date
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
Sebastian Thiel
464394af22 refactor(config): handle recursive mut json values
* recurively drill down a mutable, recursive enumeration, without borrow
  checker issues. The obvious solution doesn't work, but should.
  Stackoverflow ?
* infrastructure to set actual value, with support for ararys, pods and
  hashmaps
2015-05-12 19:48:37 +02:00
Sebastian Thiel
e434563215 chore(cargo): compilation without local overrides
Also checked in code for groupsmigration to allow others to test it
simply by checking out the right commit.
2015-05-12 17:21:57 +02:00
Sebastian Thiel
f83dff672b refactor(config): bring in all required field data
Previously we only knew the type as string, now we have enums and
additional type information, like whether or not it's a POD.

However, borrow-checker doesn't like the current code, will need more
work.
2015-05-12 12:17:36 +02:00
Sebastian Thiel
a2dd71451d feat(config): basis for simplified value setting
Previously we would set static structures manully, using complex cases
and utility functions. Now we setup the foundation to allow setting
a generic `json::value::Value` instead, which can later be deserialized
into the target structure.

Related to #111
2015-05-12 11:17:42 +02:00
Sebastian Thiel
a66f1ad728 docs(README): added dev-diary episode 3
[skip ci]
2015-05-12 07:12:48 +02:00
Sebastian Thiel
2ca0529297 fix(rustup): dc630d01e 2015-05-09
* Vec::add was removed ... which forces me to write 4 lines instead of
  one very readable one :(.
  Not everything is to the better here, even though I can imagine they
  did it to prevent people from thinking this is a cheap operation.

[skip ci]
2015-05-11 10:58:00 +02:00
Sebastian Thiel
ee84fefb4a fix(rustup): deal with rustc lifetime issue
Related to #109
2015-05-11 10:56:36 +02:00
Sebastian Thiel
5e5f0dcc66 chore(osx-deployment): fix tar-handling
Previously it would fail as '*' was in fact not substituted by the
subshell. Now I just take the brutal route, using find.

[skip ci]
2015-05-11 06:32:30 +02:00
Sebastian Thiel
296debda85 chore(README): typo + fixed yaml references
[skip ci]
2015-05-10 21:11:11 +02:00
Sebastian Thiel
9ba25af48b chore(changelog): change wording
[skip ci]
2015-05-10 21:07:15 +02:00
Sebastian Thiel
23119a06d2 chore(changelog): updated for cli v0.2.0
[skip ci]
cli-v0.2.0
2015-05-10 20:57:51 +02:00
Sebastian Thiel
383595c44e docs(CLI): added Download information
That way, it's easy to obtain the respective precompiled binary, as
well as seeing the source-code.

Overall, it makes promoting the tools easier as the CLI docs can be
linked directly.

Closes #108
[skip ci]
2015-05-10 19:40:25 +02:00
Sebastian Thiel
9e64d1bd10 fix(deployment): limit tar.gz to executable
Previously it could re-pack tar-files and mess everything up.

[skip ci]
2015-05-10 19:00:25 +02:00
Sebastian Thiel
e92f440d9b imp(index.html): download links to tar.gz files
That way, we save bandwidth and preserve the executable bit of the
respective program.

Closes #107
[skip ci]
2015-05-10 18:51:08 +02:00
Sebastian Thiel
6bca4b75d9 docs(README): detailed deployment instructions
Related to #107
[skip ci]
2015-05-10 18:09:33 +02:00
Sebastian Thiel
ad6dd7758e chore(bash): move all scripts into src/bash
That way, they are more official than hidden scripts dumped in the
project root.

[skip ci]
2015-05-10 18:09:00 +02:00
Sebastian Thiel
be117767a1 fix(deployment): osx-tar files without directory
Previously, they contained the parent directory, which wasn't intended
and was different from the plain-layout dictated by the linux version
of the script.

[skip ci]
2015-05-10 17:34:24 +02:00
Sebastian Thiel
1d44d794eb chore(deployment): script to deploy for download
A fully untested utility script allows to unpack a tar file previously
created from `*-depoly.sh` scripts to a suitable location to be
compatible with the downloads links we generate in the documentation
index.

Related to #107
[skip ci]
2015-05-10 17:22:40 +02:00
Sebastian Thiel
3e70a89674 chore(versionup): publish APIs @v0.1.7
* keep track of publish through version files
* updated clog configuration and changelog (automatic)

[skip ci]
api-v0.1.7
2015-05-10 13:51:24 +02:00
Sebastian Thiel
9e6c9537a5 chore(code-up): latest version of all code 2015-05-10 12:07:12 +02:00
Sebastian Thiel
69b12104a9 imp(index.html): DL title contains os-name
That way, it's clearer, besides the icons themselves, which OS you are
downloading for.

Related to #106
[skip ci]
2015-05-10 11:43:02 +02:00
Sebastian Thiel
52027c6db5 feat(index.html):added download links (osx,ubuntu)
All assets are configured via shared.yaml and are located elsewhere in
the web. This could lead to broken assets at some point, but I am just
risking it for know, knowing that it's easily done to have local
resources.

Closes #106
[skip ci]
2015-05-10 11:03:36 +02:00