Skip to content

Commit

Permalink
feat(docs): Traits now show up as part of lib
Browse files Browse the repository at this point in the history
Previously, they were in an extra, oddly named crate.
Now we just make it a part of our generated codebase.

That way, traits, and common code, shows up as part of the library.
Fair enough.

This also means that the types ar not reusable.
Maybe a mixed-mode can be used if that is desired.
  • Loading branch information
Byron committed Mar 3, 2015
1 parent 8dc5e2a commit e164cf7
Show file tree
Hide file tree
Showing 8 changed files with 546 additions and 179 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: json-to-xml clean help api-deps rebuild-apis license
.PHONY: json-to-xml clean help api-deps regen-apis license
.SUFFIXES:

include Makefile.helpers
Expand All @@ -11,6 +11,7 @@ MAKO_RENDER := etc/bin/mako-render
TPL := $(PYTHON) $(MAKO_RENDER)

MAKO_SRC = src/mako
RUST_SRC = src/rust
API_DEPS_TPL = $(MAKO_SRC)/deps.mako
API_DEPS = .api.deps
API_SHARED_INFO = etc/api/shared.yaml
Expand All @@ -24,7 +25,7 @@ help:
$(info Targets)
$(info help - print this help)
$(info api-deps - generate a file to tell make what API file dependencies will be)
$(info rebuild-apis - clear out all generated apis, and regenerate them)
$(info regen-apis - clear out all generated apis, and regenerate them)
$(info help-api - show all api targets to build individually)
$(info license - regenerate the main license file)

Expand All @@ -42,11 +43,11 @@ api-deps: $(API_DEPS)
include $(API_DEPS)

LICENSE.md: $(MAKO_SRC)/LICENSE.md.mako $(API_SHARED_INFO)
$(TPL) -io $<=$@ --data-files $(API_SHARED_INFO)
PYTHONPATH=$(MAKO_LIB_DIR) $(TPL) -io $<=$@ --data-files $(API_SHARED_INFO)

license: LICENSE.md

rebuild-apis: clean-apis apis license
regen-apis: clean-apis apis license

clean: clean-apis
-rm -Rf $(VENV_DIR)
Expand Down
3 changes: 0 additions & 3 deletions gen/youtube3/cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@ hyper = "*"
rustc-serialize = "*"
yup-oauth2 = "*"

[dependencies.cmn]
path = "../.."

[dev-dependencies]
yup-hyper-mock = "*"
Loading

0 comments on commit e164cf7

Please sign in to comment.