mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-30 16:18:49 +01:00
That way, the makefile doesn't need to know that much anymore, and gets simpler/less verbose. \# Also * Added filters for rust doc string * fixed .PHONY
14 lines
247 B
Python
14 lines
247 B
Python
|
|
# rust module doc comment filter
|
|
def rmdc(s):
|
|
return '//! ' + s
|
|
|
|
# rust doc comment filter
|
|
def rdc(s):
|
|
return '/// ' + s
|
|
|
|
# Expects v to be 'v\d+', throws otherwise
|
|
def to_api_version(v):
|
|
assert len(v) >= 2 and v[0] == 'v'
|
|
return v[1:]
|