Skip to content

Commit e164cf7

Browse files
committed
feat(docs): Traits now show up as part of lib
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.
1 parent 8dc5e2a commit e164cf7

8 files changed

Lines changed: 546 additions & 179 deletions

File tree

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: json-to-xml clean help api-deps rebuild-apis license
1+
.PHONY: json-to-xml clean help api-deps regen-apis license
22
.SUFFIXES:
33

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

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

@@ -42,11 +43,11 @@ api-deps: $(API_DEPS)
4243
include $(API_DEPS)
4344

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

4748
license: LICENSE.md
4849

49-
rebuild-apis: clean-apis apis license
50+
regen-apis: clean-apis apis license
5051

5152
clean: clean-apis
5253
-rm -Rf $(VENV_DIR)

gen/youtube3/cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,5 @@ hyper = "*"
2222
rustc-serialize = "*"
2323
yup-oauth2 = "*"
2424

25-
[dependencies.cmn]
26-
path = "../.."
27-
2825
[dev-dependencies]
2926
yup-hyper-mock = "*"

0 commit comments

Comments
 (0)