Commit Graph

241 Commits

Author SHA1 Message Date
Felix Krull b51b81dfdd lib: generate some additional classes 2022-05-06 12:53:54 -04:00
Felix Krull 01ae586f95 lib: brush up some docs 2022-05-06 12:53:54 -04:00
Felix Krull 87b34be855 lib: catch unwinds in RepoCheckoutFilter 2022-05-06 12:53:54 -04:00
Felix Krull 315cd5394e lib: fix clippy
Look, the type is fine. It's only an opaque thing to ensure lifetimes
anyway.
2022-05-06 12:53:54 -04:00
Felix Krull d74c0fc04f lib: add docs and safety notes to RepoCheckoutFilter 2022-05-06 12:53:54 -04:00
Felix Krull e39f8d7461 lib: add repo_checkout_filter function for better ergonomics 2022-05-06 12:53:54 -04:00
Felix Krull 903bd86e52 lib: clean up types for RepoCheckoutFilter 2022-05-06 12:53:54 -04:00
Felix Krull 94b524b21f lib: split out RepoCheckoutFilter 2022-05-06 12:53:54 -04:00
Felix Krull 6776c819f1 tests: reorganise repo tests so they have fewer feature flags 2022-05-06 12:53:54 -04:00
Felix Krull eb602d8546 tests: fix imports with default features 2022-05-06 12:53:54 -04:00
Felix Krull 19fdf706d5 lib: implement CheckoutOptions::filter (hackishly) 2022-05-06 12:53:54 -04:00
Felix Krull a521c838f5 ci: run clippy with default features as well 2022-05-06 12:53:54 -04:00
Felix Krull 54be07c6b9 tests: fix checkout_at tests 2022-05-06 12:53:54 -04:00
Felix Krull 4bab406a1a lib: satisfy clippy 2022-05-06 12:53:54 -04:00
Felix Krull aef78f3985 lib: handle ino cache and sepolicy options 2022-05-06 12:53:54 -04:00
Felix Krull eec4a2287d lib: RepoCheckoutAtOptions 2022-05-06 12:53:54 -04:00
Felix Krull 16718eb155 Revert "Simplify docs build"
This reverts commit b259275dc44e071f4662aa6eb977ff8ad9c3e1af
2022-05-06 12:53:54 -04:00
Felix Krull 1c7df84de1 Simplify docs build 2022-05-06 12:53:54 -04:00
Felix Krull a7079e543f Consolidate some pipeline stages 2022-05-06 12:53:54 -04:00
Felix Krull b5fba187ff Fix clippy issues 2022-05-06 12:53:54 -04:00
Felix Krull dfcaf3eede Ignore clippy issues in generated code 2022-05-06 12:53:54 -04:00
Felix Krull 4cfda21ff9 Disallow clippy warnings
Let's see if that comes back to bite me
2022-05-06 12:53:54 -04:00
Felix Krull feca7ddae6 Oh wait, check doesn't actually do anything useful for us... 2022-05-06 12:53:54 -04:00
Felix Krull 8982c1914e Force clippy to run even after check 2022-05-06 12:53:54 -04:00
Felix Krull 0c07616342 ci: use sccache 2022-05-06 12:53:54 -04:00
Felix Krull 87bf13574f Update version in README and add some notes on version bumps 2022-05-06 12:53:54 -04:00
Felix Krull d12b506f86 Bump version 2022-05-06 12:53:54 -04:00
Felix Krull 82ccc6065b Remove extraneous generated files 2022-05-06 12:53:54 -04:00
Felix Krull 06489f4926 Check that we haven't included extraneous generated files 2022-05-06 12:53:54 -04:00
Felix Krull 3483927f40 Add copies of the various LGPL versions and notes about their relevance 2022-05-06 12:53:54 -04:00
Felix Krull faef3562b8 collection_ref: add accessors for collection_id and ref_name 2022-05-06 12:53:54 -04:00
Felix Krull 91dc916615 Document ObjectName 2022-05-06 12:53:54 -04:00
Felix Krull 2892430fa7 Ignore deprecated (and reportedly unsafe) method 2022-05-06 12:53:54 -04:00
Felix Krull 7ac82e5d1b Clean up some comments 2022-05-06 12:53:54 -04:00
Felix Krull 1e744239cb Document Repo::new_for_path 2022-05-06 12:53:54 -04:00
Felix Krull 8fc327296e Improve doc blurb a bit 2022-05-06 12:53:54 -04:00
Felix Krull 1f20721664 We don't need to patch the hand-written Repo symbols any more 2022-05-06 12:53:54 -04:00
Felix Krull 0fe1b0d951 Add ignored test for empty FileInfo crash 2022-05-06 12:53:54 -04:00
Felix Krull 80de2aa2ea Add test for checkout_tree 2022-05-06 12:53:54 -04:00
Felix Krull 1068d4f619 Adjust CI check flags 2022-05-06 12:53:54 -04:00
Felix Krull fa1bf6cbb8 Add more checks to the pipeline 2022-05-06 12:53:54 -04:00
Felix Krull 66cf9b288f Move extra Repo methods to plain impl as well 2022-05-06 12:53:54 -04:00
Felix Krull 493ba2e2f5 Update gir and regenerate 2022-05-06 12:53:54 -04:00
Felix Krull 0b85551588 Change gir targets 2022-05-06 12:53:54 -04:00
Felix Krull 40a7eecbf6 Fix docs publish 2022-05-06 12:53:54 -04:00
Felix Krull ebbf285f28 Build docs more smartly 2022-05-06 12:53:54 -04:00
Felix Krull 15c8e6376d Add html_root_url 2022-05-06 12:53:54 -04:00
Felix Krull b24197c251 Don't fmt and check for now 2022-05-06 12:53:54 -04:00
Felix Krull a3bcc237f5 Fix gitlab-ci 2022-05-06 12:53:54 -04:00
Felix Krull 2c7761047a Add fmt check, check, clippy 2022-05-06 12:53:54 -04:00
Felix Krull f1a7507ee4 Also cache docs 2022-05-06 12:53:54 -04:00
Felix Krull b218a5b6c5 Try caching 2022-05-06 12:53:54 -04:00
Felix Krull 0d33525815 Suppress unused import warnings in generated code 2022-05-06 12:53:54 -04:00
Felix Krull c7f158ad94 Disable CollectionRef tests on too-old features 2022-05-06 12:53:54 -04:00
Felix Krull f5375f36b6 Don't separately build ostree-sys with nightly 2022-05-06 12:53:53 -04:00
Felix Krull f5b4d7edcd Add other interesting pipeline stages 2022-05-06 12:53:53 -04:00
Felix Krull 0e23ed73e6 Don't allow nightly runs to fail 2022-05-06 12:53:53 -04:00
Felix Krull c89270969c Refactor tests and add test for traverse_commit 2022-05-06 12:53:53 -04:00
Felix Krull ff3e268a3b Add some more unsorted types 2022-05-06 12:53:53 -04:00
Felix Krull ab3e2c908e Switch ObjectName to GString 2022-05-06 12:53:53 -04:00
Felix Krull 475cd53c43 Add docs for methods that were moved to RepoExtManual 2022-05-06 12:53:53 -04:00
Felix Krull f7963d86ad Fix 2022-05-06 12:53:53 -04:00
Felix Krull 2452dee279 Clarify reasons for async exclude 2022-05-06 12:53:53 -04:00
Felix Krull 3decba546e Switch to generated CollectionRef 2022-05-06 12:53:53 -04:00
Felix Krull 60960612a3 Reorganise test code
This way I don't need to differentiate between tests for generated code
and tests for hand-written code.
2022-05-06 12:53:53 -04:00
Felix Krull bf488d2266 Build with older libostree version for now 2022-05-06 12:53:53 -04:00
Felix Krull 61e205b5c3 Regenerate and update to new gir and glib-rs version 2022-05-06 12:53:53 -04:00
Felix Krull df2d708f30 Add missing version features 2022-05-06 12:53:53 -04:00
Felix Krull bc0a8a04d3 sys: regenerate with new gir 2022-05-06 12:53:53 -04:00
Felix Krull 0f0ccb898d Update gir version 2022-05-06 12:53:53 -04:00
Felix Krull c41cc620bb Add version features 2022-05-06 12:53:53 -04:00
Felix Krull 8d19e94d6a sys: regenerate with external version file 2022-05-06 12:53:53 -04:00
Felix Krull 82b61d0bae Add more types 2022-05-06 12:53:53 -04:00
Felix Krull 31eccf004e Pin rustdoc-stripper version 2022-05-06 12:53:53 -04:00
Felix Krull 7b9bdf143c Add some explanatory comments to gir config 2022-05-06 12:53:53 -04:00
Felix Krull 0bf8f3f52e Fix some issues with RepoFile 2022-05-06 12:53:53 -04:00
Felix Krull 26b5729c53 Add some tests for Repo 2022-05-06 12:53:53 -04:00
Felix Krull cfcc97d5f7 Fix a few more missing methods 2022-05-06 12:53:53 -04:00
Felix Krull 04bd81be0f Sanity test for ObjectName 2022-05-06 12:53:53 -04:00
Felix Krull c3f120e8b6 Add some sanity tests for CollectionRef 2022-05-06 12:53:53 -04:00
Felix Krull 8561eaaa8c Fix return type for CollectionRef::new
gir doesn't seem to generate this correctly. I have no clue why, there
are certainly some functions where nullable=1 causes an Option return.
2022-05-06 12:53:53 -04:00
Felix Krull 8bfefa2b14 Build CollectionRef manually
That way we can get Eq and Hash.
2022-05-06 12:53:53 -04:00
Felix Krull 13c61a9329 Fix features in Repo 2022-05-06 12:53:53 -04:00
Felix Krull 8afba7f5ab Add explanatory comments to ostree-sys.toml 2022-05-06 12:53:53 -04:00
Felix Krull 7871c600e0 Test sys with v2018_9 until I can get 2019.2 for CI 2022-05-06 12:53:53 -04:00
Felix Krull 3fa9378a5e Update OSTree gir and regenerate 2022-05-06 12:53:53 -04:00
Felix Krull 91df5067a5 Update base gir files 2022-05-06 12:53:53 -04:00
Felix Krull c6b0ebaf6e Add note about crate rename 2022-05-06 12:53:53 -04:00
Felix Krull 999d239c59 Rename libostree to ostree 2022-05-06 12:53:53 -04:00
Felix Krull 77697b10f7 Rename libostree to ostree 2022-05-06 12:53:53 -04:00
Felix Krull f4cf9d3377 Rename libostree-sys to ostree-sys 2022-05-06 12:53:53 -04:00
Felix Krull e62ca73e82 Remove unnecessary gir/* aliases 2022-05-06 12:53:53 -04:00
Felix Krull 57645e91cb Remove version constants to fix build with different libostree versions 2022-05-06 12:53:53 -04:00
Felix Krull 16709027e1 Pin gir version 2022-05-06 12:53:53 -04:00
Felix Krull 5028561b18 Repo rename 2022-05-06 12:53:53 -04:00
Felix Krull e817635e8b sys: regenerate
This removes my build trick to allow docs builds without the library
available, but since we're not targetting docs.rs for now, that's fine.
2022-05-06 12:53:53 -04:00
Felix Krull 6b082eb2c4 Test with all features 2022-05-06 12:53:53 -04:00
Felix Krull 7d9c44ec4a Remove some methods that are not generated correctly 2022-05-06 12:53:53 -04:00
Felix Krull 20dca2630c Move libostree-sys/ to sys/ 2022-05-06 12:53:53 -04:00
Felix Krull 7c29936b84 Reorganise gitlab-ci.yml a bit 2022-05-06 12:53:53 -04:00