From a34cc19e60efeefe2c97dec214bf0191dc52f054 Mon Sep 17 00:00:00 2001 From: Jon Janzen Date: Mon, 2 Dec 2024 09:11:36 -0800 Subject: [PATCH] Rewrite TARGETS files to BUCK files for facebook/sapling (#990) Summary: Pull Request resolved: https://github.com/facebook/sapling/pull/990 X-link: https://github.com/facebookexperimental/rust-shed/pull/62 This diff migrates TARGETS file to BUCK files that are synced for an open source project. Reviewed By: dtolnay Differential Revision: D66561332 --- addons/TARGETS | 40 - ci/TARGETS | 16 - common/rust/shed/hostcaps/TARGETS | 43 -- .../structs/scm/hg/hgclientconf/TARGETS | 14 - .../structs/scm/mononoke/blobimport/TARGETS | 12 - .../structs/scm/mononoke/constants/TARGETS | 18 - .../structs/scm/mononoke/lfs_server/TARGETS | 16 - .../mononoke/mysql/replication_lag/TARGETS | 15 - .../scm/mononoke/observability/TARGETS | 22 - configerator/structs/scm/mononoke/qps/TARGETS | 19 - .../structs/scm/mononoke/ratelimiting/TARGETS | 19 - .../structs/scm/mononoke/redaction/TARGETS | 16 - .../structs/scm/mononoke/repos/TARGETS | 41 - .../structs/scm/mononoke/sharding/TARGETS | 15 - .../structs/scm/mononoke/xdb_gc/TARGETS | 18 - eden/TARGETS | 83 --- eden/facebook/TARGETS | 23 - eden/facebook/test-data/TARGETS | 8 - eden/fs/TARGETS | 11 - eden/fs/benchmarks/TARGETS | 157 ---- eden/fs/benchmarks/language/TARGETS | 12 - eden/fs/benchmarks/os/TARGETS | 14 - eden/fs/cli/TARGETS | 252 ------- eden/fs/cli/doctor/test/TARGETS | 44 -- eden/fs/cli/doctor/test/lib/TARGETS | 17 - eden/fs/cli/facebook/TARGETS | 71 -- eden/fs/cli/facebook/test/TARGETS | 23 - eden/fs/cli/test/TARGETS | 41 - eden/fs/cli/test/lib/TARGETS | 12 - eden/fs/cli/trace/TARGETS | 31 - eden/fs/cli_rs/TARGETS | 88 --- eden/fs/cli_rs/edenfs-client/TARGETS | 62 -- eden/fs/cli_rs/edenfs-commands/TARGETS | 59 -- eden/fs/cli_rs/edenfs-config/TARGETS | 16 - eden/fs/cli_rs/edenfs-error/TARGETS | 13 - eden/fs/cli_rs/edenfs-utils/TARGETS | 47 -- eden/fs/cli_rs/edenfsctl/TARGETS | 30 - .../cli_rs/facebook/edenfs-telemetry/TARGETS | 23 - eden/fs/cli_rs/stack-config-derive/TARGETS | 17 - eden/fs/cli_rs/stack-config/TARGETS | 37 - eden/fs/config/TARGETS | 92 --- eden/fs/config/facebook/TARGETS | 67 -- eden/fs/config/facebook/test/TARGETS | 21 - eden/fs/config/test/TARGETS | 25 - eden/fs/digest/TARGETS | 17 - eden/fs/digest/test/TARGETS | 15 - eden/fs/facebook/TARGETS | 82 -- eden/fs/facebook/experimental/TARGETS | 11 - eden/fs/facebook/prefetch_profiles/TARGETS | 122 --- .../facebook/prefetch_profiles/test/TARGETS | 32 - eden/fs/facebook/prototypes/crawler/TARGETS | 24 - eden/fs/facebook/test/TARGETS | 36 - eden/fs/fuse/TARGETS | 53 -- eden/fs/fuse/fuse_tester/TARGETS | 35 - eden/fs/fuse/test/TARGETS | 25 - eden/fs/fuzz/facebook/TARGETS | 73 -- eden/fs/inodes/TARGETS | 293 -------- eden/fs/inodes/fscatalog/TARGETS | 62 -- eden/fs/inodes/fscatalog/test/TARGETS | 29 - eden/fs/inodes/lmdbcatalog/TARGETS | 115 --- eden/fs/inodes/lmdbcatalog/test/TARGETS | 42 -- eden/fs/inodes/memcatalog/TARGETS | 23 - eden/fs/inodes/overlay/TARGETS | 65 -- eden/fs/inodes/sqlitecatalog/TARGETS | 104 --- eden/fs/inodes/sqlitecatalog/test/TARGETS | 41 - eden/fs/inodes/test/TARGETS | 539 -------------- eden/fs/journal/TARGETS | 21 - eden/fs/journal/test/TARGETS | 15 - eden/fs/lmdb/TARGETS | 17 - eden/fs/model/TARGETS | 69 -- eden/fs/model/git/TARGETS | 55 -- eden/fs/model/git/test/TARGETS | 18 - eden/fs/model/test/TARGETS | 20 - eden/fs/monitor/TARGETS | 78 -- eden/fs/monitor/test/TARGETS | 21 - eden/fs/nfs/TARGETS | 147 ---- eden/fs/nfs/portmap/TARGETS | 66 -- eden/fs/nfs/rpc/TARGETS | 51 -- eden/fs/nfs/rpc/test/TARGETS | 16 - eden/fs/nfs/test/TARGETS | 16 - eden/fs/nfs/testharness/TARGETS | 15 - eden/fs/nfs/xdr/TARGETS | 13 - eden/fs/nfs/xdr/test/TARGETS | 15 - eden/fs/notifications/TARGETS | 108 --- eden/fs/privhelper/TARGETS | 154 ---- eden/fs/privhelper/test/TARGETS | 57 -- eden/fs/prjfs/TARGETS | 85 --- eden/fs/py/eden/TARGETS | 19 - eden/fs/py/eden/thrift/TARGETS | 30 - eden/fs/py/test/TARGETS | 11 - eden/fs/rocksdb/TARGETS | 17 - eden/fs/scripts/facebook/TARGETS | 15 - .../fs/scripts/facebook/macos_crashes/TARGETS | 19 - eden/fs/scripts/facebook/rpmbisect/TARGETS | 25 - eden/fs/service/TARGETS | 640 ---------------- eden/fs/service/facebook/TARGETS | 63 -- eden/fs/service/test/TARGETS | 86 --- eden/fs/sqlite/TARGETS | 19 - eden/fs/sqlite/test/TARGETS | 13 - eden/fs/store/TARGETS | 228 ------ eden/fs/store/facebook/http/TARGETS | 23 - eden/fs/store/facebook/recas/TARGETS | 49 -- eden/fs/store/facebook/recas/test/TARGETS | 70 -- eden/fs/store/filter/TARGETS | 77 -- eden/fs/store/filter/test/TARGETS | 25 - eden/fs/store/git/TARGETS | 33 - eden/fs/store/hg/TARGETS | 119 --- eden/fs/store/hg/test/TARGETS | 70 -- eden/fs/store/test/TARGETS | 125 ---- eden/fs/takeover/TARGETS | 52 -- eden/fs/takeover/test/TARGETS | 22 - eden/fs/telemetry/TARGETS | 133 ---- eden/fs/telemetry/facebook/TARGETS | 86 --- eden/fs/telemetry/facebook/if/TARGETS | 16 - eden/fs/telemetry/test/TARGETS | 77 -- eden/fs/testharness/TARGETS | 313 -------- eden/fs/testharness/test/TARGETS | 76 -- eden/fs/third-party/TARGETS | 12 - eden/fs/utils/TARGETS | 306 -------- eden/fs/utils/test/TARGETS | 115 --- eden/fs/utils/test/test-data/TARGETS | 8 - eden/integration/TARGETS | 703 ------------------ eden/integration/facebook/lib/TARGETS | 8 - eden/integration/fsck/TARGETS | 24 - eden/integration/helpers/TARGETS | 122 --- eden/integration/hg/TARGETS | 479 ------------ eden/integration/hg/lib/TARGETS | 33 - eden/integration/lib/TARGETS | 44 -- eden/integration/snapshot/TARGETS | 52 -- eden/mononoke/TARGETS | 330 -------- eden/mononoke/acl_regions/TARGETS | 55 -- eden/mononoke/async_requests/TARGETS | 92 --- eden/mononoke/async_requests/if/TARGETS | 17 - eden/mononoke/async_requests/worker/TARGETS | 49 -- eden/mononoke/benchmarks/derived_data/TARGETS | 38 - eden/mononoke/benchmarks/filestore/TARGETS | 33 - .../benchmarks/storage_config/TARGETS | 25 - eden/mononoke/blobimport_lib/TARGETS | 53 -- eden/mononoke/blobrepo/TARGETS | 130 ---- eden/mononoke/blobrepo_utils/TARGETS | 59 -- eden/mononoke/blobstore/TARGETS | 634 ---------------- eden/mononoke/blobstore/if/TARGETS | 13 - eden/mononoke/blobstore/packblob/if/TARGETS | 16 - eden/mononoke/blobstore_sync_queue/TARGETS | 48 -- eden/mononoke/bonsai_git_mapping/TARGETS | 95 --- eden/mononoke/bonsai_git_mapping/if/TARGETS | 25 - .../mononoke/bonsai_globalrev_mapping/TARGETS | 92 --- .../bonsai_globalrev_mapping/if/TARGETS | 21 - eden/mononoke/bonsai_hg_mapping/TARGETS | 60 -- eden/mononoke/bonsai_hg_mapping/if/TARGETS | 26 - eden/mononoke/bonsai_svnrev_mapping/TARGETS | 47 -- .../mononoke/bonsai_svnrev_mapping/if/TARGETS | 21 - eden/mononoke/bonsai_tag_mapping/TARGETS | 36 - eden/mononoke/bookmarks/TARGETS | 252 ------- eden/mononoke/cache_warmup/TARGETS | 35 - eden/mononoke/cas_client/TARGETS | 73 -- eden/mononoke/cats/TARGETS | 16 - .../changesets/changesets_creation/TARGETS | 22 - eden/mononoke/cmdlib/TARGETS | 157 ---- eden/mononoke/cmdlib/base_app/TARGETS | 14 - eden/mononoke/cmdlib/caching/TARGETS | 18 - eden/mononoke/cmdlib/commit_id/TARGETS | 21 - eden/mononoke/cmdlib/config_args/TARGETS | 17 - eden/mononoke/cmdlib/displaying/TARGETS | 21 - eden/mononoke/cmdlib/displaying/graph/TARGETS | 32 - eden/mononoke/cmdlib/mononoke_app/TARGETS | 66 -- .../mononoke_app/shutdown_timeout/TARGETS | 12 - eden/mononoke/cmdlib/mononoke_app/tls/TARGETS | 11 - eden/mononoke/cmdlib/scrubbing/TARGETS | 15 - eden/mononoke/cmdlib/sharding/TARGETS | 25 - eden/mononoke/cmdlib/sharding_ext/TARGETS | 12 - .../cmdlib/zk_leader_election/TARGETS | 14 - .../mononoke/cmds/copy_blobstore_keys/TARGETS | 24 - eden/mononoke/commit_cloud/TARGETS | 54 -- eden/mononoke/commit_cloud/helpers/TARGETS | 12 - eden/mononoke/commit_cloud/types/TARGETS | 15 - .../commit_rewriting/backsyncer/TARGETS | 114 --- .../bookmark_renaming/TARGETS | 20 - .../bookmarks_validator/TARGETS | 40 - .../commit_rewriting/commit_validator/TARGETS | 55 -- .../commit_rewriting/cross_repo_sync/TARGETS | 182 ----- .../live_commit_sync_config/TARGETS | 42 -- .../commit_rewriting/megarepo/TARGETS | 115 --- .../mononoke_x_repo_sync_job/TARGETS | 56 -- eden/mononoke/commit_rewriting/movers/TARGETS | 19 - .../synced_commit_mapping/TARGETS | 76 -- .../synced_commit_mapping/if/TARGETS | 16 - eden/mononoke/common/assembly_line/TARGETS | 15 - eden/mononoke/common/async_limiter/TARGETS | 25 - .../common/async_limiter/examples/TARGETS | 18 - .../mononoke/common/bounded_traversal/TARGETS | 24 - .../connection_security_checker/TARGETS | 13 - eden/mononoke/common/copy_utils/TARGETS | 41 - eden/mononoke/common/dedupmap/TARGETS | 9 - .../common/facebook/git_locator/TARGETS | 26 - .../common/facebook/thrift_client/TARGETS | 23 - eden/mononoke/common/futures_watchdog/TARGETS | 14 - eden/mononoke/common/iterhelpers/TARGETS | 11 - eden/mononoke/common/logger_ext/TARGETS | 16 - eden/mononoke/common/memory/TARGETS | 13 - eden/mononoke/common/path_hash/TARGETS | 16 - eden/mononoke/common/reloader/TARGETS | 25 - eden/mononoke/common/rendezvous/TARGETS | 27 - eden/mononoke/common/retry/TARGETS | 15 - eden/mononoke/common/running/TARGETS | 15 - eden/mononoke/common/rust/caching_ext/TARGETS | 30 - eden/mononoke/common/rust/slog_ext/TARGETS | 16 - eden/mononoke/common/rust/sql_ext/TARGETS | 54 -- .../rust/sql_ext/examples/facebook/TARGETS | 17 - eden/mononoke/common/scribe_ext/TARGETS | 17 - eden/mononoke/common/scuba_ext/TARGETS | 22 - eden/mononoke/common/sql_construct/TARGETS | 19 - eden/mononoke/common/thrift_convert/TARGETS | 42 -- .../common/thrift_convert/tests/if/TARGETS | 14 - eden/mononoke/common/time_measuring/TARGETS | 16 - eden/mononoke/common/topo_sort/TARGETS | 14 - eden/mononoke/common/type_map/TARGETS | 9 - eden/mononoke/common/uniqueheap/TARGETS | 10 - .../common/wait_for_replication/TARGETS | 21 - eden/mononoke/common/yield_stream/TARGETS | 16 - eden/mononoke/derived_data/TARGETS | 661 ---------------- .../content_manifest_derivation/TARGETS | 23 - .../derived_data/filenodes_derivation/TARGETS | 44 -- eden/mononoke/derived_data/if/TARGETS | 36 - .../derived_data/mercurial_derivation/TARGETS | 98 --- eden/mononoke/derived_data/remote/if/TARGETS | 26 - eden/mononoke/edenapi_service/TARGETS | 75 -- eden/mononoke/facebook/aliasverify/TARGETS | 10 - eden/mononoke/facebook/blobimportjob/TARGETS | 24 - .../facebook/blobstore_deletion/TARGETS | 32 - .../facebook/bookmark_service/TARGETS | 85 --- .../facebook/bookmark_service/if/TARGETS | 19 - eden/mononoke/facebook/commit_cloud/TARGETS | 28 - eden/mononoke/facebook/config/TARGETS | 21 - .../facebook/derived_data_service/TARGETS | 188 ----- .../facebook/employee_service/TARGETS | 19 - eden/mononoke/facebook/fbpkg/TARGETS | 286 ------- .../facebook/fbsource_commit_tailer/TARGETS | 29 - .../facebook/git_server/push_poller/TARGETS | 22 - .../push_poller/lib/command/TARGETS | 16 - .../push_poller/lib/ephemeral_shard/TARGETS | 20 - .../git_server/push_poller/lib/poller/TARGETS | 28 - .../push_poller/lib/repository/TARGETS | 17 - .../push_poller/lib/storage/TARGETS | 19 - eden/mononoke/facebook/manifoldblob/TARGETS | 28 - .../facebook/mirror_hg_commits/TARGETS | 59 -- eden/mononoke/facebook/monitoring/TARGETS | 44 -- .../facebook/mononoke-bootstrap/TARGETS | 43 -- .../mononoke/facebook/mononoke_config/TARGETS | 27 - .../TARGETS | 12 - eden/mononoke/facebook/phabricator/TARGETS | 21 - .../facebook/post_commit_tailer/TARGETS | 29 - eden/mononoke/facebook/replay/TARGETS | 42 -- .../mononoke/facebook/reposynthesizer/TARGETS | 12 - eden/mononoke/facebook/s3pool/TARGETS | 27 - eden/mononoke/facebook/scripts/TARGETS | 37 - .../facebook/slow_bookmark_mover/TARGETS | 47 -- .../sparse_size_commit_tailer/TARGETS | 33 - eden/mononoke/facebook/sqlblob_gc_py/TARGETS | 22 - .../facebook/whatsapp_commit_tailer/TARGETS | 20 - .../features/history_traversal/TARGETS | 52 -- eden/mononoke/features/redaction/TARGETS | 15 - eden/mononoke/features/repo_metadata/TARGETS | 33 - .../features/repo_update_logger/TARGETS | 52 -- eden/mononoke/filenodes/TARGETS | 21 - eden/mononoke/filenodes/if/TARGETS | 28 - eden/mononoke/filestore/TARGETS | 46 -- eden/mononoke/git/check_git_wc/TARGETS | 30 - eden/mononoke/git/facebook/TARGETS | 15 - .../git/facebook/git_move_bookmark/TARGETS | 22 - eden/mononoke/git/facebook/pushrebase/TARGETS | 28 - .../git/facebook/remote_gitimport/TARGETS | 52 -- .../git/facebook/scs_connection/TARGETS | 22 - eden/mononoke/git/git-pool/TARGETS | 17 - eden/mononoke/git/git_types/TARGETS | 66 -- eden/mononoke/git/git_types/if/TARGETS | 20 - eden/mononoke/git/gitexport/TARGETS | 109 --- eden/mononoke/git/gitimport/TARGETS | 42 -- eden/mononoke/git/import_direct/TARGETS | 27 - eden/mononoke/git/import_tools/TARGETS | 55 -- eden/mononoke/git/packetline/TARGETS | 29 - eden/mononoke/git/packfile/TARGETS | 51 -- eden/mononoke/git/packfile/if/TARGETS | 13 - eden/mononoke/git/protocol/TARGETS | 43 -- eden/mononoke/git_server/TARGETS | 73 -- eden/mononoke/git_source_of_truth/TARGETS | 28 - eden/mononoke/git_symbolic_refs/TARGETS | 35 - eden/mononoke/gotham_ext/TARGETS | 53 -- eden/mononoke/hgproto/TARGETS | 35 - eden/mononoke/hooks/TARGETS | 86 --- eden/mononoke/land_service/facebook/TARGETS | 19 - .../land_service/facebook/server/TARGETS | 53 -- eden/mononoke/land_service/if/TARGETS | 22 - eden/mononoke/lfs_import_lib/TARGETS | 21 - eden/mononoke/lfs_protocol/TARGETS | 23 - eden/mononoke/lfs_server/TARGETS | 81 -- eden/mononoke/manifest/TARGETS | 38 - eden/mononoke/megarepo_api/TARGETS | 213 ------ eden/mononoke/megarepo_api/if/TARGETS | 37 - eden/mononoke/mercurial/TARGETS | 245 ------ eden/mononoke/mercurial/mutation/if/TARGETS | 25 - eden/mononoke/mercurial/types/if/TARGETS | 31 - eden/mononoke/metaconfig/TARGETS | 61 -- eden/mononoke/microwave/TARGETS | 60 -- eden/mononoke/microwave/if/TARGETS | 20 - eden/mononoke/modern_sync/TARGETS | 41 - eden/mononoke/mononoke_api/TARGETS | 133 ---- eden/mononoke/mononoke_api_hg/TARGETS | 55 -- eden/mononoke/mononoke_cas_sync_job/TARGETS | 51 -- eden/mononoke/mononoke_configs/TARGETS | 30 - eden/mononoke/mononoke_hg_sync_job/TARGETS | 113 --- eden/mononoke/mononoke_macros/TARGETS | 38 - eden/mononoke/mononoke_repos/TARGETS | 13 - eden/mononoke/mononoke_types/TARGETS | 83 --- .../mononoke_types/serialization/TARGETS | 52 -- eden/mononoke/mutable_counters/TARGETS | 38 - eden/mononoke/mutable_renames/TARGETS | 41 - eden/mononoke/mutable_renames/if/TARGETS | 19 - eden/mononoke/newfilenodes/TARGETS | 47 -- eden/mononoke/observability/TARGETS | 18 - eden/mononoke/permission_checker/TARGETS | 32 - eden/mononoke/phases/TARGETS | 97 --- eden/mononoke/pushrebase/TARGETS | 122 --- .../pushrebase_mutation_mapping/TARGETS | 43 -- eden/mononoke/quiet_stream/TARGETS | 13 - eden/mononoke/rate_limiting/TARGETS | 25 - .../bonsai_blob_mapping/TARGETS | 29 - .../buffered_commit_graph_storage/TARGETS | 27 - .../caching_commit_graph_storage/TARGETS | 38 - .../commit_graph/commit_graph/TARGETS | 29 - .../commit_graph/commit_graph_testlib/TARGETS | 29 - .../commit_graph/commit_graph_types/TARGETS | 24 - .../commit_graph_types/if/TARGETS | 16 - .../in_memory_commit_graph_storage/TARGETS | 17 - .../memwrites_commit_graph_storage/TARGETS | 27 - .../preloaded_commit_graph_storage/TARGETS | 33 - .../sql_commit_graph_storage/TARGETS | 34 - .../repo_attributes/deletion_log/TARGETS | 26 - .../hook_manager/hook_manager/TARGETS | 48 -- .../repo_hook_file_content_provider/TARGETS | 47 -- .../repo_bookmark_attrs/TARGETS | 16 - .../repo_attributes/repo_cross_repo/TARGETS | 16 - .../repo_derivation_queues/TARGETS | 33 - .../repo_derivation_queues/facebook/TARGETS | 77 -- .../repo_derivation_queues/if/TARGETS | 16 - .../repo_attributes/repo_derived_data/TARGETS | 26 - .../repo_attributes/repo_identity/TARGETS | 12 - .../repo_attributes/repo_lock/TARGETS | 25 - .../repo_permission_checker/TARGETS | 20 - .../repo_sparse_profiles/TARGETS | 24 - .../repo_attributes/sql_query_config/TARGETS | 13 - eden/mononoke/repo_authorization/TARGETS | 35 - eden/mononoke/repo_client/TARGETS | 307 -------- eden/mononoke/repo_factory/TARGETS | 175 ----- eden/mononoke/repo_import/TARGETS | 80 -- .../mononoke/repo_metadata_checkpoint/TARGETS | 36 - eden/mononoke/repo_stats_logger/TARGETS | 39 - eden/mononoke/scs/client/TARGETS | 56 -- eden/mononoke/scs/client/tw/TARGETS | 15 - eden/mononoke/scs/if/TARGETS | 52 -- eden/mononoke/scs/raw_client_lib/TARGETS | 38 - eden/mononoke/scs/scs_errors/TARGETS | 17 - eden/mononoke/scs/scs_methods/TARGETS | 75 -- eden/mononoke/scs/scs_server/TARGETS | 66 -- eden/mononoke/server/context/TARGETS | 38 - eden/mononoke/server/metadata/TARGETS | 16 - eden/mononoke/server/qps/TARGETS | 21 - eden/mononoke/server/repo_listener/TARGETS | 68 -- eden/mononoke/server/session_id/TARGETS | 11 - eden/mononoke/sshrelay/TARGETS | 21 - eden/mononoke/streaming_clone/TARGETS | 29 - eden/mononoke/tests/fixtures/TARGETS | 31 - eden/mononoke/tests/integration/TARGETS | 224 ------ .../integration/backfill_derived/TARGETS | 20 - .../tests/integration/backsyncer/TARGETS | 18 - .../tests/integration/blobimport/TARGETS | 16 - eden/mononoke/tests/integration/certs/TARGETS | 11 - .../tests/integration/certs/facebook/TARGETS | 12 - .../tests/integration/cross_repo/TARGETS | 24 - .../tests/integration/edenapi/TARGETS | 22 - .../tests/integration/ephemeral_store/TARGETS | 18 - .../tests/integration/facebook/TARGETS | 410 ---------- .../integration/facebook/belljar/TARGETS | 35 - .../integration/facebook/commit_cloud/TARGETS | 21 - .../facebook/git_pushrebase/TARGETS | 25 - .../facebook/mononoke_re_cas/TARGETS | 40 - .../tests/integration/git_lfs/TARGETS | 20 - .../tests/integration/gitbundle/TARGETS | 21 - .../tests/integration/gitexport/TARGETS | 19 - .../tests/integration/gitimport/TARGETS | 22 - eden/mononoke/tests/integration/hooks/TARGETS | 22 - .../mononoke/tests/integration/import/TARGETS | 18 - .../tests/integration/lfs_server/TARGETS | 15 - .../tests/integration/megarepo/TARGETS | 20 - .../tests/integration/modern_sync/TARGETS | 18 - .../integration/mononoke_git_server/TARGETS | 23 - .../integration/mononoke_hg_sync/TARGETS | 23 - .../tests/integration/mononoke_re_cas/TARGETS | 34 - .../tests/integration/newadmin/TARGETS | 21 - .../tests/integration/push_redirector/TARGETS | 22 - .../tests/integration/repo_import/TARGETS | 18 - .../mononoke/tests/integration/server/TARGETS | 46 -- .../tests/integration/sqlblob/TARGETS | 16 - .../mononoke/tests/integration/walker/TARGETS | 19 - eden/mononoke/tests/utils/TARGETS | 46 -- eden/mononoke/third_party/git_delta/TARGETS | 58 -- eden/mononoke/time_window_counter/TARGETS | 14 - eden/mononoke/tools/admin/TARGETS | 139 ---- eden/mononoke/tools/example/TARGETS | 16 - eden/mononoke/tools/executor/TARGETS | 19 - eden/mononoke/tools/executor/facebook/TARGETS | 10 - .../backfill_bonsai_blob_mapping/TARGETS | 49 -- .../tools/facebook/config_parser/TARGETS | 16 - .../derived_data_metrics_tailer/TARGETS | 44 -- .../facebook/derived_data_tailer/TARGETS | 44 -- .../facebook/repo_metadata_logger/TARGETS | 46 -- eden/mononoke/tools/import/TARGETS | 22 - eden/mononoke/tools/testtool/TARGETS | 37 - eden/mononoke/walker/TARGETS | 92 --- eden/mononoke/wireproto_handler/TARGETS | 19 - eden/scm/TARGETS | 254 ------- eden/scm/exec/eden_apfs_mount_helper/TARGETS | 66 -- eden/scm/exec/fsprobe/TARGETS | 12 - eden/scm/exec/scm_daemon/TARGETS | 40 - eden/scm/exec/scratch/TARGETS | 60 -- eden/scm/hgcache_size_logger/TARGETS | 16 - eden/scm/lib/async-runtime/TARGETS | 26 - eden/scm/lib/atomicfile/TARGETS | 24 - eden/scm/lib/auth/TARGETS | 36 - eden/scm/lib/backingstore/TARGETS | 107 --- eden/scm/lib/backingstore/benches/TARGETS | 29 - eden/scm/lib/blackbox/TARGETS | 39 - eden/scm/lib/blackbox/serde_alt/TARGETS | 24 - eden/scm/lib/cas-client/TARGETS | 29 - eden/scm/lib/cas-client/re-cas-common/TARGETS | 27 - eden/scm/lib/cas-client/rich-client/TARGETS | 29 - eden/scm/lib/cas-client/thin-client/TARGETS | 29 - eden/scm/lib/cats/TARGETS | 29 - eden/scm/lib/checkout/TARGETS | 86 --- eden/scm/lib/clidispatch/TARGETS | 59 -- eden/scm/lib/clientinfo-async/TARGETS | 23 - eden/scm/lib/clientinfo/TARGETS | 31 - eden/scm/lib/clientinfo/facebook/TARGETS | 25 - eden/scm/lib/cliparser/TARGETS | 39 - eden/scm/lib/clone/TARGETS | 33 - eden/scm/lib/commands/TARGETS | 141 ---- eden/scm/lib/commands/cmdpy/TARGETS | 51 -- eden/scm/lib/commands/cmdutil/TARGETS | 30 - .../lib/commands/commands/cmdclone/TARGETS | 41 - .../lib/commands/commands/cmdconfig/TARGETS | 29 - .../commands/commands/cmdconfigfile/TARGETS | 25 - .../scm/lib/commands/commands/cmdgoto/TARGETS | 38 - .../scm/lib/commands/commands/cmdroot/TARGETS | 25 - .../lib/commands/commands/cmdstatus/TARGETS | 35 - .../lib/commands/commands/cmdversion/TARGETS | 30 - .../lib/commands/commands/cmdwhereami/TARGETS | 27 - .../debugcommands/cmddebugargs/TARGETS | 23 - .../debugcommands/cmddebugcas/TARGETS | 31 - .../debugcommands/cmddebugconfigtree/TARGETS | 22 - .../debugcommands/cmddebugcurrentexe/TARGETS | 23 - .../cmddebugdumpindexedlog/TARGETS | 24 - .../cmddebugdumpinternalconfig/TARGETS | 31 - .../debugcommands/cmddebugfsync/TARGETS | 25 - .../debugcommands/cmddebughttp/TARGETS | 26 - .../debugcommands/cmddebuglfsreceive/TARGETS | 25 - .../debugcommands/cmddebuglfssend/TARGETS | 27 - .../debugcommands/cmddebugmergestate/TARGETS | 28 - .../debugcommands/cmddebugmetrics/TARGETS | 26 - .../cmddebugnetworkdoctor/TARGETS | 24 - .../debugcommands/cmddebugpython/TARGETS | 23 - .../debugcommands/cmddebugracyoutput/TARGETS | 27 - .../cmddebugrefreshconfig/TARGETS | 32 - .../debugcommands/cmddebugrevsets/TARGETS | 26 - .../debugcommands/cmddebugrunlog/TARGETS | 27 - .../debugcommands/cmddebugscmstore/TARGETS | 29 - .../cmddebugscmstorereplay/TARGETS | 26 - .../cmddebugsegmentgraph/TARGETS | 26 - .../debugcommands/cmddebugstore/TARGETS | 28 - .../cmddebugstructuredprogress/TARGETS | 25 - .../debugcommands/cmddebugtestcommand/TARGETS | 23 - .../debugcommands/cmddebugtop/TARGETS | 29 - .../debugcommands/cmddebugwait/TARGETS | 38 - eden/scm/lib/commandserver/TARGETS | 55 -- eden/scm/lib/commitcloudsubscriber/TARGETS | 39 - eden/scm/lib/commits/TARGETS | 42 -- eden/scm/lib/commits/git/TARGETS | 41 - eden/scm/lib/commits/trait/TARGETS | 31 - eden/scm/lib/config/hgrc-parser/TARGETS | 20 - eden/scm/lib/config/loader/TARGETS | 110 --- eden/scm/lib/config/model/TARGETS | 28 - eden/scm/lib/config/set/TARGETS | 30 - eden/scm/lib/config/static/TARGETS | 24 - eden/scm/lib/config/static/macros/TARGETS | 28 - eden/scm/lib/config/union/TARGETS | 26 - eden/scm/lib/constructors/TARGETS | 36 - eden/scm/lib/context/TARGETS | 24 - eden/scm/lib/control-point/TARGETS | 30 - eden/scm/lib/copytrace/TARGETS | 48 -- eden/scm/lib/cpython-async/TARGETS | 25 - eden/scm/lib/cpython-ext/TARGETS | 38 - eden/scm/lib/dag/TARGETS | 129 ---- eden/scm/lib/dag/benches/TARGETS | 28 - eden/scm/lib/dag/bindag/TARGETS | 29 - eden/scm/lib/dag/dag-types/TARGETS | 45 -- eden/scm/lib/dag/fuzz/TARGETS | 165 ---- eden/scm/lib/dag/gitdag/TARGETS | 29 - eden/scm/lib/debugtop/TARGETS | 24 - eden/scm/lib/dev-logger/TARGETS | 37 - eden/scm/lib/doctor/network/TARGETS | 30 - eden/scm/lib/drawdag/TARGETS | 25 - eden/scm/lib/eagerepo/TARGETS | 51 -- eden/scm/lib/edenapi/TARGETS | 50 -- eden/scm/lib/edenapi/ext/TARGETS | 32 - eden/scm/lib/edenapi/trait/TARGETS | 33 - eden/scm/lib/edenapi/types/TARGETS | 90 --- eden/scm/lib/edenfs-client/TARGETS | 36 - eden/scm/lib/edenfs_ffi/TARGETS | 72 -- eden/scm/lib/encoding/TARGETS | 42 -- eden/scm/lib/exchange/TARGETS | 32 - eden/scm/lib/formatter/TARGETS | 27 - eden/scm/lib/fsinfo/TARGETS | 67 -- eden/scm/lib/fsyncglob/TARGETS | 26 - eden/scm/lib/gitcompat/TARGETS | 34 - eden/scm/lib/gitstore/TARGETS | 38 - eden/scm/lib/hg-http/TARGETS | 29 - eden/scm/lib/hg-metrics/TARGETS | 23 - eden/scm/lib/hgtime/TARGETS | 33 - eden/scm/lib/hook/TARGETS | 29 - eden/scm/lib/http-client/TARGETS | 67 -- eden/scm/lib/identity/TARGETS | 34 - eden/scm/lib/indexedlog/TARGETS | 116 --- eden/scm/lib/insta_ext/TARGETS | 21 - eden/scm/lib/io/TARGETS | 44 -- eden/scm/lib/io/term/logger/TARGETS | 24 - eden/scm/lib/io/term/style/TARGETS | 26 - eden/scm/lib/journal/TARGETS | 26 - eden/scm/lib/lazystr/TARGETS | 20 - eden/scm/lib/linelog/TARGETS | 29 - eden/scm/lib/lz4-pyframe/TARGETS | 30 - eden/scm/lib/manifest-tree/TARGETS | 76 -- eden/scm/lib/manifest/TARGETS | 38 - eden/scm/lib/metalog/TARGETS | 42 -- eden/scm/lib/metrics/TARGETS | 23 - eden/scm/lib/metrics/render/TARGETS | 26 - eden/scm/lib/migration/TARGETS | 23 - eden/scm/lib/mincode/TARGETS | 33 - eden/scm/lib/minibench/TARGETS | 21 - eden/scm/lib/minibench/examples/TARGETS | 19 - eden/scm/lib/minibytes/TARGETS | 49 -- eden/scm/lib/mpatch-sys/TARGETS | 21 - eden/scm/lib/mpatch/TARGETS | 23 - eden/scm/lib/mutationstore/TARGETS | 42 -- eden/scm/lib/nodemap/TARGETS | 34 - eden/scm/lib/nonblocking/TARGETS | 23 - eden/scm/lib/pathhistory/TARGETS | 35 - eden/scm/lib/pathmatcher/TARGETS | 38 - eden/scm/lib/pathmatcher/types/TARGETS | 23 - eden/scm/lib/pprint/TARGETS | 23 - eden/scm/lib/procinfo/TARGETS | 74 -- eden/scm/lib/progress/model/TARGETS | 27 - eden/scm/lib/progress/render/TARGETS | 29 - eden/scm/lib/python-modules/TARGETS | 40 - eden/scm/lib/python-modules/codegen/TARGETS | 16 - eden/scm/lib/radixbuf/TARGETS | 36 - eden/scm/lib/refencode/TARGETS | 22 - eden/scm/lib/renderdag/TARGETS | 33 - eden/scm/lib/repo/TARGETS | 72 -- eden/scm/lib/repo/repo-minimal-info/TARGETS | 30 - eden/scm/lib/repo/url/TARGETS | 26 - eden/scm/lib/repolock/TARGETS | 33 - eden/scm/lib/revisionstore/TARGETS | 142 ---- eden/scm/lib/revlogindex/TARGETS | 37 - eden/scm/lib/revsets/TARGETS | 32 - eden/scm/lib/runlog/TARGETS | 50 -- eden/scm/lib/sampling/TARGETS | 26 - eden/scm/lib/sparse/TARGETS | 73 -- eden/scm/lib/spawn-ext/TARGETS | 61 -- eden/scm/lib/status/TARGETS | 22 - eden/scm/lib/storemodel/TARGETS | 34 - eden/scm/lib/streams/TARGETS | 28 - eden/scm/lib/third-party/conch-parser/TARGETS | 21 - eden/scm/lib/third-party/streampager/TARGETS | 67 -- eden/scm/lib/third-party/webview-sys/TARGETS | 102 --- .../lib/third-party/windows-curses/TARGETS | 32 - eden/scm/lib/third-party/xdiff/TARGETS | 20 - eden/scm/lib/thrift-types/TARGETS | 31 - eden/scm/lib/tracing-analyzer/TARGETS | 23 - eden/scm/lib/tracing-collector/TARGETS | 41 - eden/scm/lib/tracing-reload/TARGETS | 25 - eden/scm/lib/tracing-runtime-callsite/TARGETS | 27 - eden/scm/lib/tracing-sampler/TARGETS | 28 - eden/scm/lib/treestate/TARGETS | 45 -- eden/scm/lib/types/TARGETS | 79 -- eden/scm/lib/util/TARGETS | 76 -- eden/scm/lib/util/atexit/TARGETS | 23 - eden/scm/lib/util/factory/TARGETS | 24 - eden/scm/lib/util/format-util/TARGETS | 30 - eden/scm/lib/util/hgplain/TARGETS | 22 - eden/scm/lib/util/nodeipc/TARGETS | 80 -- eden/scm/lib/util/nodeipc/derive/TARGETS | 24 - eden/scm/lib/util/procutil/TARGETS | 43 -- eden/scm/lib/util/pubsub/TARGETS | 23 - eden/scm/lib/util/rewrite-macros/TARGETS | 42 -- .../rewrite-macros/tree-pattern-match/TARGETS | 23 - eden/scm/lib/util/testutil/TARGETS | 23 - eden/scm/lib/util/time-interval/TARGETS | 19 - eden/scm/lib/util/udsipc/TARGETS | 33 - eden/scm/lib/version/TARGETS | 34 - eden/scm/lib/vfs/TARGETS | 50 -- eden/scm/lib/vlqencoding/TARGETS | 25 - eden/scm/lib/webview-app/TARGETS | 38 - eden/scm/lib/workingcopy/TARGETS | 68 -- eden/scm/lib/workingcopy/repostate/TARGETS | 32 - eden/scm/lib/xdiff-sys/TARGETS | 31 - eden/scm/lib/xdiff/TARGETS | 51 -- eden/scm/lib/zstdelta/TARGETS | 34 - eden/scm/lib/zstore/TARGETS | 37 - eden/scm/newdoc/TARGETS | 1 - eden/scm/sapling/cext/TARGETS | 100 --- eden/scm/saplingnative/bindings/TARGETS | 104 --- .../bindings/modules/pyatexit/TARGETS | 27 - .../bindings/modules/pyauth/TARGETS | 29 - .../bindings/modules/pyblackbox/TARGETS | 26 - .../bindings/modules/pybytes/TARGETS | 26 - .../bindings/modules/pycats/TARGETS | 27 - .../bindings/modules/pycbor/TARGETS | 26 - .../bindings/modules/pycext/TARGETS | 42 -- .../bindings/modules/pycheckout/TARGETS | 49 -- .../bindings/modules/pyclientinfo/TARGETS | 26 - .../bindings/modules/pycliparser/TARGETS | 23 - .../bindings/modules/pyconchparser/TARGETS | 27 - .../bindings/modules/pyconfigloader/TARGETS | 28 - .../bindings/modules/pycontext/TARGETS | 29 - .../bindings/modules/pycopytrace/TARGETS | 31 - .../bindings/modules/pydag/TARGETS | 39 - .../bindings/modules/pydiffhelpers/TARGETS | 22 - .../bindings/modules/pydirs/TARGETS | 26 - .../bindings/modules/pydoctor/TARGETS | 26 - .../bindings/modules/pydrawdag/TARGETS | 25 - .../bindings/modules/pyeagerepo/TARGETS | 34 - .../bindings/modules/pyedenapi/TARGETS | 47 -- .../bindings/modules/pyerror/TARGETS | 39 - .../bindings/modules/pyexchange/TARGETS | 31 - .../bindings/modules/pyfail/TARGETS | 26 - .../bindings/modules/pyformatutil/TARGETS | 29 - .../bindings/modules/pyfs/TARGETS | 26 - .../bindings/modules/pygitcompat/TARGETS | 29 - .../bindings/modules/pygitstore/TARGETS | 29 - .../bindings/modules/pyhgmetrics/TARGETS | 28 - .../bindings/modules/pyhgtime/TARGETS | 26 - .../bindings/modules/pyidentity/TARGETS | 26 - .../bindings/modules/pyindexedlog/TARGETS | 27 - .../bindings/modules/pyio/TARGETS | 28 - .../bindings/modules/pyjournal/TARGETS | 28 - .../bindings/modules/pylinelog/TARGETS | 24 - .../bindings/modules/pylock/TARGETS | 26 - .../bindings/modules/pylz4/TARGETS | 26 - .../bindings/modules/pymanifest/TARGETS | 32 - .../bindings/modules/pymetalog/TARGETS | 27 - .../bindings/modules/pymodules/TARGETS | 28 - .../bindings/modules/pymutationstore/TARGETS | 33 - .../bindings/modules/pynodeipc/TARGETS | 27 - .../bindings/modules/pynodemap/TARGETS | 27 - .../bindings/modules/pypathhistory/TARGETS | 30 - .../bindings/modules/pypathmatcher/TARGETS | 30 - .../bindings/modules/pypprint/TARGETS | 26 - .../bindings/modules/pyprocess/TARGETS | 27 - .../bindings/modules/pyprogress/TARGETS | 27 - .../bindings/modules/pyrefencode/TARGETS | 26 - .../bindings/modules/pyregex/TARGETS | 26 - .../bindings/modules/pyrenderdag/TARGETS | 28 - .../bindings/modules/pyrepo/TARGETS | 40 - .../bindings/modules/pyrevisionstore/TARGETS | 32 - .../bindings/modules/pyrevlogindex/TARGETS | 28 - .../bindings/modules/pysptui/TARGETS | 29 - .../bindings/modules/pystatus/TARGETS | 28 - .../bindings/modules/pystoremodel/TARGETS | 28 - .../bindings/modules/pythreading/TARGETS | 25 - .../bindings/modules/pytoml/TARGETS | 26 - .../bindings/modules/pytracing/TARGETS | 34 - .../bindings/modules/pytreestate/TARGETS | 32 - .../bindings/modules/pyversion/TARGETS | 25 - .../bindings/modules/pyvlq/TARGETS | 27 - .../bindings/modules/pywebview/TARGETS | 26 - .../bindings/modules/pyworker/TARGETS | 44 -- .../bindings/modules/pyworkingcopy/TARGETS | 45 -- .../modules/pyworkingcopyclient/TARGETS | 30 - .../bindings/modules/pyxdiff/TARGETS | 26 - .../bindings/modules/pyzstd/TARGETS | 28 - .../bindings/modules/pyzstore/TARGETS | 26 - eden/scm/saplingnative/conch_parser/TARGETS | 47 -- eden/scm/saplingnative/pybindings/TARGETS | 17 - eden/scm/tests/TARGETS | 290 -------- eden/test-data/TARGETS | 13 - eden/test_support/TARGETS | 8 - 695 files changed, 33247 deletions(-) delete mode 100644 addons/TARGETS delete mode 100644 ci/TARGETS delete mode 100644 common/rust/shed/hostcaps/TARGETS delete mode 100644 configerator/structs/scm/hg/hgclientconf/TARGETS delete mode 100644 configerator/structs/scm/mononoke/blobimport/TARGETS delete mode 100644 configerator/structs/scm/mononoke/constants/TARGETS delete mode 100644 configerator/structs/scm/mononoke/lfs_server/TARGETS delete mode 100644 configerator/structs/scm/mononoke/mysql/replication_lag/TARGETS delete mode 100644 configerator/structs/scm/mononoke/observability/TARGETS delete mode 100644 configerator/structs/scm/mononoke/qps/TARGETS delete mode 100644 configerator/structs/scm/mononoke/ratelimiting/TARGETS delete mode 100644 configerator/structs/scm/mononoke/redaction/TARGETS delete mode 100644 configerator/structs/scm/mononoke/repos/TARGETS delete mode 100644 configerator/structs/scm/mononoke/sharding/TARGETS delete mode 100644 configerator/structs/scm/mononoke/xdb_gc/TARGETS delete mode 100644 eden/TARGETS delete mode 100644 eden/facebook/TARGETS delete mode 100644 eden/facebook/test-data/TARGETS delete mode 100644 eden/fs/TARGETS delete mode 100644 eden/fs/benchmarks/TARGETS delete mode 100644 eden/fs/benchmarks/language/TARGETS delete mode 100644 eden/fs/benchmarks/os/TARGETS delete mode 100644 eden/fs/cli/TARGETS delete mode 100644 eden/fs/cli/doctor/test/TARGETS delete mode 100644 eden/fs/cli/doctor/test/lib/TARGETS delete mode 100644 eden/fs/cli/facebook/TARGETS delete mode 100644 eden/fs/cli/facebook/test/TARGETS delete mode 100644 eden/fs/cli/test/TARGETS delete mode 100644 eden/fs/cli/test/lib/TARGETS delete mode 100644 eden/fs/cli/trace/TARGETS delete mode 100644 eden/fs/cli_rs/TARGETS delete mode 100644 eden/fs/cli_rs/edenfs-client/TARGETS delete mode 100644 eden/fs/cli_rs/edenfs-commands/TARGETS delete mode 100644 eden/fs/cli_rs/edenfs-config/TARGETS delete mode 100644 eden/fs/cli_rs/edenfs-error/TARGETS delete mode 100644 eden/fs/cli_rs/edenfs-utils/TARGETS delete mode 100644 eden/fs/cli_rs/edenfsctl/TARGETS delete mode 100644 eden/fs/cli_rs/facebook/edenfs-telemetry/TARGETS delete mode 100644 eden/fs/cli_rs/stack-config-derive/TARGETS delete mode 100644 eden/fs/cli_rs/stack-config/TARGETS delete mode 100644 eden/fs/config/TARGETS delete mode 100644 eden/fs/config/facebook/TARGETS delete mode 100644 eden/fs/config/facebook/test/TARGETS delete mode 100644 eden/fs/config/test/TARGETS delete mode 100644 eden/fs/digest/TARGETS delete mode 100644 eden/fs/digest/test/TARGETS delete mode 100644 eden/fs/facebook/TARGETS delete mode 100644 eden/fs/facebook/experimental/TARGETS delete mode 100644 eden/fs/facebook/prefetch_profiles/TARGETS delete mode 100644 eden/fs/facebook/prefetch_profiles/test/TARGETS delete mode 100644 eden/fs/facebook/prototypes/crawler/TARGETS delete mode 100644 eden/fs/facebook/test/TARGETS delete mode 100644 eden/fs/fuse/TARGETS delete mode 100644 eden/fs/fuse/fuse_tester/TARGETS delete mode 100644 eden/fs/fuse/test/TARGETS delete mode 100644 eden/fs/fuzz/facebook/TARGETS delete mode 100644 eden/fs/inodes/TARGETS delete mode 100644 eden/fs/inodes/fscatalog/TARGETS delete mode 100644 eden/fs/inodes/fscatalog/test/TARGETS delete mode 100644 eden/fs/inodes/lmdbcatalog/TARGETS delete mode 100644 eden/fs/inodes/lmdbcatalog/test/TARGETS delete mode 100644 eden/fs/inodes/memcatalog/TARGETS delete mode 100644 eden/fs/inodes/overlay/TARGETS delete mode 100644 eden/fs/inodes/sqlitecatalog/TARGETS delete mode 100644 eden/fs/inodes/sqlitecatalog/test/TARGETS delete mode 100644 eden/fs/inodes/test/TARGETS delete mode 100644 eden/fs/journal/TARGETS delete mode 100644 eden/fs/journal/test/TARGETS delete mode 100644 eden/fs/lmdb/TARGETS delete mode 100644 eden/fs/model/TARGETS delete mode 100644 eden/fs/model/git/TARGETS delete mode 100644 eden/fs/model/git/test/TARGETS delete mode 100644 eden/fs/model/test/TARGETS delete mode 100644 eden/fs/monitor/TARGETS delete mode 100644 eden/fs/monitor/test/TARGETS delete mode 100644 eden/fs/nfs/TARGETS delete mode 100644 eden/fs/nfs/portmap/TARGETS delete mode 100644 eden/fs/nfs/rpc/TARGETS delete mode 100644 eden/fs/nfs/rpc/test/TARGETS delete mode 100644 eden/fs/nfs/test/TARGETS delete mode 100644 eden/fs/nfs/testharness/TARGETS delete mode 100644 eden/fs/nfs/xdr/TARGETS delete mode 100644 eden/fs/nfs/xdr/test/TARGETS delete mode 100644 eden/fs/notifications/TARGETS delete mode 100644 eden/fs/privhelper/TARGETS delete mode 100644 eden/fs/privhelper/test/TARGETS delete mode 100644 eden/fs/prjfs/TARGETS delete mode 100644 eden/fs/py/eden/TARGETS delete mode 100644 eden/fs/py/eden/thrift/TARGETS delete mode 100644 eden/fs/py/test/TARGETS delete mode 100644 eden/fs/rocksdb/TARGETS delete mode 100644 eden/fs/scripts/facebook/TARGETS delete mode 100644 eden/fs/scripts/facebook/macos_crashes/TARGETS delete mode 100644 eden/fs/scripts/facebook/rpmbisect/TARGETS delete mode 100644 eden/fs/service/TARGETS delete mode 100644 eden/fs/service/facebook/TARGETS delete mode 100644 eden/fs/service/test/TARGETS delete mode 100644 eden/fs/sqlite/TARGETS delete mode 100644 eden/fs/sqlite/test/TARGETS delete mode 100644 eden/fs/store/TARGETS delete mode 100644 eden/fs/store/facebook/http/TARGETS delete mode 100644 eden/fs/store/facebook/recas/TARGETS delete mode 100644 eden/fs/store/facebook/recas/test/TARGETS delete mode 100644 eden/fs/store/filter/TARGETS delete mode 100644 eden/fs/store/filter/test/TARGETS delete mode 100644 eden/fs/store/git/TARGETS delete mode 100644 eden/fs/store/hg/TARGETS delete mode 100644 eden/fs/store/hg/test/TARGETS delete mode 100644 eden/fs/store/test/TARGETS delete mode 100644 eden/fs/takeover/TARGETS delete mode 100644 eden/fs/takeover/test/TARGETS delete mode 100644 eden/fs/telemetry/TARGETS delete mode 100644 eden/fs/telemetry/facebook/TARGETS delete mode 100644 eden/fs/telemetry/facebook/if/TARGETS delete mode 100644 eden/fs/telemetry/test/TARGETS delete mode 100644 eden/fs/testharness/TARGETS delete mode 100644 eden/fs/testharness/test/TARGETS delete mode 100644 eden/fs/third-party/TARGETS delete mode 100644 eden/fs/utils/TARGETS delete mode 100644 eden/fs/utils/test/TARGETS delete mode 100644 eden/fs/utils/test/test-data/TARGETS delete mode 100644 eden/integration/TARGETS delete mode 100644 eden/integration/facebook/lib/TARGETS delete mode 100644 eden/integration/fsck/TARGETS delete mode 100644 eden/integration/helpers/TARGETS delete mode 100644 eden/integration/hg/TARGETS delete mode 100644 eden/integration/hg/lib/TARGETS delete mode 100644 eden/integration/lib/TARGETS delete mode 100644 eden/integration/snapshot/TARGETS delete mode 100644 eden/mononoke/TARGETS delete mode 100644 eden/mononoke/acl_regions/TARGETS delete mode 100644 eden/mononoke/async_requests/TARGETS delete mode 100644 eden/mononoke/async_requests/if/TARGETS delete mode 100644 eden/mononoke/async_requests/worker/TARGETS delete mode 100644 eden/mononoke/benchmarks/derived_data/TARGETS delete mode 100644 eden/mononoke/benchmarks/filestore/TARGETS delete mode 100644 eden/mononoke/benchmarks/storage_config/TARGETS delete mode 100644 eden/mononoke/blobimport_lib/TARGETS delete mode 100644 eden/mononoke/blobrepo/TARGETS delete mode 100644 eden/mononoke/blobrepo_utils/TARGETS delete mode 100644 eden/mononoke/blobstore/TARGETS delete mode 100644 eden/mononoke/blobstore/if/TARGETS delete mode 100644 eden/mononoke/blobstore/packblob/if/TARGETS delete mode 100644 eden/mononoke/blobstore_sync_queue/TARGETS delete mode 100644 eden/mononoke/bonsai_git_mapping/TARGETS delete mode 100644 eden/mononoke/bonsai_git_mapping/if/TARGETS delete mode 100644 eden/mononoke/bonsai_globalrev_mapping/TARGETS delete mode 100644 eden/mononoke/bonsai_globalrev_mapping/if/TARGETS delete mode 100644 eden/mononoke/bonsai_hg_mapping/TARGETS delete mode 100644 eden/mononoke/bonsai_hg_mapping/if/TARGETS delete mode 100644 eden/mononoke/bonsai_svnrev_mapping/TARGETS delete mode 100644 eden/mononoke/bonsai_svnrev_mapping/if/TARGETS delete mode 100644 eden/mononoke/bonsai_tag_mapping/TARGETS delete mode 100644 eden/mononoke/bookmarks/TARGETS delete mode 100644 eden/mononoke/cache_warmup/TARGETS delete mode 100644 eden/mononoke/cas_client/TARGETS delete mode 100644 eden/mononoke/cats/TARGETS delete mode 100644 eden/mononoke/changesets/changesets_creation/TARGETS delete mode 100644 eden/mononoke/cmdlib/TARGETS delete mode 100644 eden/mononoke/cmdlib/base_app/TARGETS delete mode 100644 eden/mononoke/cmdlib/caching/TARGETS delete mode 100644 eden/mononoke/cmdlib/commit_id/TARGETS delete mode 100644 eden/mononoke/cmdlib/config_args/TARGETS delete mode 100644 eden/mononoke/cmdlib/displaying/TARGETS delete mode 100644 eden/mononoke/cmdlib/displaying/graph/TARGETS delete mode 100644 eden/mononoke/cmdlib/mononoke_app/TARGETS delete mode 100644 eden/mononoke/cmdlib/mononoke_app/shutdown_timeout/TARGETS delete mode 100644 eden/mononoke/cmdlib/mononoke_app/tls/TARGETS delete mode 100644 eden/mononoke/cmdlib/scrubbing/TARGETS delete mode 100644 eden/mononoke/cmdlib/sharding/TARGETS delete mode 100644 eden/mononoke/cmdlib/sharding_ext/TARGETS delete mode 100644 eden/mononoke/cmdlib/zk_leader_election/TARGETS delete mode 100644 eden/mononoke/cmds/copy_blobstore_keys/TARGETS delete mode 100644 eden/mononoke/commit_cloud/TARGETS delete mode 100644 eden/mononoke/commit_cloud/helpers/TARGETS delete mode 100644 eden/mononoke/commit_cloud/types/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/backsyncer/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/bookmark_renaming/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/bookmarks_validator/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/commit_validator/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/cross_repo_sync/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/live_commit_sync_config/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/megarepo/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/movers/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/synced_commit_mapping/TARGETS delete mode 100644 eden/mononoke/commit_rewriting/synced_commit_mapping/if/TARGETS delete mode 100644 eden/mononoke/common/assembly_line/TARGETS delete mode 100644 eden/mononoke/common/async_limiter/TARGETS delete mode 100644 eden/mononoke/common/async_limiter/examples/TARGETS delete mode 100644 eden/mononoke/common/bounded_traversal/TARGETS delete mode 100644 eden/mononoke/common/connection_security_checker/TARGETS delete mode 100644 eden/mononoke/common/copy_utils/TARGETS delete mode 100644 eden/mononoke/common/dedupmap/TARGETS delete mode 100644 eden/mononoke/common/facebook/git_locator/TARGETS delete mode 100644 eden/mononoke/common/facebook/thrift_client/TARGETS delete mode 100644 eden/mononoke/common/futures_watchdog/TARGETS delete mode 100644 eden/mononoke/common/iterhelpers/TARGETS delete mode 100644 eden/mononoke/common/logger_ext/TARGETS delete mode 100644 eden/mononoke/common/memory/TARGETS delete mode 100644 eden/mononoke/common/path_hash/TARGETS delete mode 100644 eden/mononoke/common/reloader/TARGETS delete mode 100644 eden/mononoke/common/rendezvous/TARGETS delete mode 100644 eden/mononoke/common/retry/TARGETS delete mode 100644 eden/mononoke/common/running/TARGETS delete mode 100644 eden/mononoke/common/rust/caching_ext/TARGETS delete mode 100644 eden/mononoke/common/rust/slog_ext/TARGETS delete mode 100644 eden/mononoke/common/rust/sql_ext/TARGETS delete mode 100644 eden/mononoke/common/rust/sql_ext/examples/facebook/TARGETS delete mode 100644 eden/mononoke/common/scribe_ext/TARGETS delete mode 100644 eden/mononoke/common/scuba_ext/TARGETS delete mode 100644 eden/mononoke/common/sql_construct/TARGETS delete mode 100644 eden/mononoke/common/thrift_convert/TARGETS delete mode 100644 eden/mononoke/common/thrift_convert/tests/if/TARGETS delete mode 100644 eden/mononoke/common/time_measuring/TARGETS delete mode 100644 eden/mononoke/common/topo_sort/TARGETS delete mode 100644 eden/mononoke/common/type_map/TARGETS delete mode 100644 eden/mononoke/common/uniqueheap/TARGETS delete mode 100644 eden/mononoke/common/wait_for_replication/TARGETS delete mode 100644 eden/mononoke/common/yield_stream/TARGETS delete mode 100644 eden/mononoke/derived_data/TARGETS delete mode 100644 eden/mononoke/derived_data/content_manifest_derivation/TARGETS delete mode 100644 eden/mononoke/derived_data/filenodes_derivation/TARGETS delete mode 100644 eden/mononoke/derived_data/if/TARGETS delete mode 100644 eden/mononoke/derived_data/mercurial_derivation/TARGETS delete mode 100644 eden/mononoke/derived_data/remote/if/TARGETS delete mode 100644 eden/mononoke/edenapi_service/TARGETS delete mode 100644 eden/mononoke/facebook/aliasverify/TARGETS delete mode 100644 eden/mononoke/facebook/blobimportjob/TARGETS delete mode 100644 eden/mononoke/facebook/blobstore_deletion/TARGETS delete mode 100644 eden/mononoke/facebook/bookmark_service/TARGETS delete mode 100644 eden/mononoke/facebook/bookmark_service/if/TARGETS delete mode 100644 eden/mononoke/facebook/commit_cloud/TARGETS delete mode 100644 eden/mononoke/facebook/config/TARGETS delete mode 100644 eden/mononoke/facebook/derived_data_service/TARGETS delete mode 100644 eden/mononoke/facebook/employee_service/TARGETS delete mode 100644 eden/mononoke/facebook/fbpkg/TARGETS delete mode 100644 eden/mononoke/facebook/fbsource_commit_tailer/TARGETS delete mode 100644 eden/mononoke/facebook/git_server/push_poller/TARGETS delete mode 100644 eden/mononoke/facebook/git_server/push_poller/lib/command/TARGETS delete mode 100644 eden/mononoke/facebook/git_server/push_poller/lib/ephemeral_shard/TARGETS delete mode 100644 eden/mononoke/facebook/git_server/push_poller/lib/poller/TARGETS delete mode 100644 eden/mononoke/facebook/git_server/push_poller/lib/repository/TARGETS delete mode 100644 eden/mononoke/facebook/git_server/push_poller/lib/storage/TARGETS delete mode 100644 eden/mononoke/facebook/manifoldblob/TARGETS delete mode 100644 eden/mononoke/facebook/mirror_hg_commits/TARGETS delete mode 100644 eden/mononoke/facebook/monitoring/TARGETS delete mode 100644 eden/mononoke/facebook/mononoke-bootstrap/TARGETS delete mode 100644 eden/mononoke/facebook/mononoke_config/TARGETS delete mode 100644 eden/mononoke/facebook/mononoke_pack_similar_blobs_download/TARGETS delete mode 100644 eden/mononoke/facebook/phabricator/TARGETS delete mode 100644 eden/mononoke/facebook/post_commit_tailer/TARGETS delete mode 100644 eden/mononoke/facebook/replay/TARGETS delete mode 100644 eden/mononoke/facebook/reposynthesizer/TARGETS delete mode 100644 eden/mononoke/facebook/s3pool/TARGETS delete mode 100644 eden/mononoke/facebook/scripts/TARGETS delete mode 100644 eden/mononoke/facebook/slow_bookmark_mover/TARGETS delete mode 100644 eden/mononoke/facebook/sparse_size_commit_tailer/TARGETS delete mode 100644 eden/mononoke/facebook/sqlblob_gc_py/TARGETS delete mode 100644 eden/mononoke/facebook/whatsapp_commit_tailer/TARGETS delete mode 100644 eden/mononoke/features/history_traversal/TARGETS delete mode 100644 eden/mononoke/features/redaction/TARGETS delete mode 100644 eden/mononoke/features/repo_metadata/TARGETS delete mode 100644 eden/mononoke/features/repo_update_logger/TARGETS delete mode 100644 eden/mononoke/filenodes/TARGETS delete mode 100644 eden/mononoke/filenodes/if/TARGETS delete mode 100644 eden/mononoke/filestore/TARGETS delete mode 100644 eden/mononoke/git/check_git_wc/TARGETS delete mode 100644 eden/mononoke/git/facebook/TARGETS delete mode 100644 eden/mononoke/git/facebook/git_move_bookmark/TARGETS delete mode 100644 eden/mononoke/git/facebook/pushrebase/TARGETS delete mode 100644 eden/mononoke/git/facebook/remote_gitimport/TARGETS delete mode 100644 eden/mononoke/git/facebook/scs_connection/TARGETS delete mode 100644 eden/mononoke/git/git-pool/TARGETS delete mode 100644 eden/mononoke/git/git_types/TARGETS delete mode 100644 eden/mononoke/git/git_types/if/TARGETS delete mode 100644 eden/mononoke/git/gitexport/TARGETS delete mode 100644 eden/mononoke/git/gitimport/TARGETS delete mode 100644 eden/mononoke/git/import_direct/TARGETS delete mode 100644 eden/mononoke/git/import_tools/TARGETS delete mode 100644 eden/mononoke/git/packetline/TARGETS delete mode 100644 eden/mononoke/git/packfile/TARGETS delete mode 100644 eden/mononoke/git/packfile/if/TARGETS delete mode 100644 eden/mononoke/git/protocol/TARGETS delete mode 100644 eden/mononoke/git_server/TARGETS delete mode 100644 eden/mononoke/git_source_of_truth/TARGETS delete mode 100644 eden/mononoke/git_symbolic_refs/TARGETS delete mode 100644 eden/mononoke/gotham_ext/TARGETS delete mode 100644 eden/mononoke/hgproto/TARGETS delete mode 100644 eden/mononoke/hooks/TARGETS delete mode 100644 eden/mononoke/land_service/facebook/TARGETS delete mode 100644 eden/mononoke/land_service/facebook/server/TARGETS delete mode 100644 eden/mononoke/land_service/if/TARGETS delete mode 100644 eden/mononoke/lfs_import_lib/TARGETS delete mode 100644 eden/mononoke/lfs_protocol/TARGETS delete mode 100644 eden/mononoke/lfs_server/TARGETS delete mode 100644 eden/mononoke/manifest/TARGETS delete mode 100644 eden/mononoke/megarepo_api/TARGETS delete mode 100644 eden/mononoke/megarepo_api/if/TARGETS delete mode 100644 eden/mononoke/mercurial/TARGETS delete mode 100644 eden/mononoke/mercurial/mutation/if/TARGETS delete mode 100644 eden/mononoke/mercurial/types/if/TARGETS delete mode 100644 eden/mononoke/metaconfig/TARGETS delete mode 100644 eden/mononoke/microwave/TARGETS delete mode 100644 eden/mononoke/microwave/if/TARGETS delete mode 100644 eden/mononoke/modern_sync/TARGETS delete mode 100644 eden/mononoke/mononoke_api/TARGETS delete mode 100644 eden/mononoke/mononoke_api_hg/TARGETS delete mode 100644 eden/mononoke/mononoke_cas_sync_job/TARGETS delete mode 100644 eden/mononoke/mononoke_configs/TARGETS delete mode 100644 eden/mononoke/mononoke_hg_sync_job/TARGETS delete mode 100644 eden/mononoke/mononoke_macros/TARGETS delete mode 100644 eden/mononoke/mononoke_repos/TARGETS delete mode 100644 eden/mononoke/mononoke_types/TARGETS delete mode 100644 eden/mononoke/mononoke_types/serialization/TARGETS delete mode 100644 eden/mononoke/mutable_counters/TARGETS delete mode 100644 eden/mononoke/mutable_renames/TARGETS delete mode 100644 eden/mononoke/mutable_renames/if/TARGETS delete mode 100644 eden/mononoke/newfilenodes/TARGETS delete mode 100644 eden/mononoke/observability/TARGETS delete mode 100644 eden/mononoke/permission_checker/TARGETS delete mode 100644 eden/mononoke/phases/TARGETS delete mode 100644 eden/mononoke/pushrebase/TARGETS delete mode 100644 eden/mononoke/pushrebase_mutation_mapping/TARGETS delete mode 100644 eden/mononoke/quiet_stream/TARGETS delete mode 100644 eden/mononoke/rate_limiting/TARGETS delete mode 100644 eden/mononoke/repo_attributes/bonsai_blob_mapping/TARGETS delete mode 100644 eden/mononoke/repo_attributes/commit_graph/buffered_commit_graph_storage/TARGETS delete mode 100644 eden/mononoke/repo_attributes/commit_graph/caching_commit_graph_storage/TARGETS delete mode 100644 eden/mononoke/repo_attributes/commit_graph/commit_graph/TARGETS delete mode 100644 eden/mononoke/repo_attributes/commit_graph/commit_graph_testlib/TARGETS delete mode 100644 eden/mononoke/repo_attributes/commit_graph/commit_graph_types/TARGETS delete mode 100644 eden/mononoke/repo_attributes/commit_graph/commit_graph_types/if/TARGETS delete mode 100644 eden/mononoke/repo_attributes/commit_graph/in_memory_commit_graph_storage/TARGETS delete mode 100644 eden/mononoke/repo_attributes/commit_graph/memwrites_commit_graph_storage/TARGETS delete mode 100644 eden/mononoke/repo_attributes/commit_graph/preloaded_commit_graph_storage/TARGETS delete mode 100644 eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage/TARGETS delete mode 100644 eden/mononoke/repo_attributes/deletion_log/TARGETS delete mode 100644 eden/mononoke/repo_attributes/hook_manager/hook_manager/TARGETS delete mode 100644 eden/mononoke/repo_attributes/hook_manager/repo_hook_file_content_provider/TARGETS delete mode 100644 eden/mononoke/repo_attributes/repo_bookmark_attrs/TARGETS delete mode 100644 eden/mononoke/repo_attributes/repo_cross_repo/TARGETS delete mode 100644 eden/mononoke/repo_attributes/repo_derivation_queues/TARGETS delete mode 100644 eden/mononoke/repo_attributes/repo_derivation_queues/facebook/TARGETS delete mode 100644 eden/mononoke/repo_attributes/repo_derivation_queues/if/TARGETS delete mode 100644 eden/mononoke/repo_attributes/repo_derived_data/TARGETS delete mode 100644 eden/mononoke/repo_attributes/repo_identity/TARGETS delete mode 100644 eden/mononoke/repo_attributes/repo_lock/TARGETS delete mode 100644 eden/mononoke/repo_attributes/repo_permission_checker/TARGETS delete mode 100644 eden/mononoke/repo_attributes/repo_sparse_profiles/TARGETS delete mode 100644 eden/mononoke/repo_attributes/sql_query_config/TARGETS delete mode 100644 eden/mononoke/repo_authorization/TARGETS delete mode 100644 eden/mononoke/repo_client/TARGETS delete mode 100644 eden/mononoke/repo_factory/TARGETS delete mode 100644 eden/mononoke/repo_import/TARGETS delete mode 100644 eden/mononoke/repo_metadata_checkpoint/TARGETS delete mode 100644 eden/mononoke/repo_stats_logger/TARGETS delete mode 100644 eden/mononoke/scs/client/TARGETS delete mode 100644 eden/mononoke/scs/client/tw/TARGETS delete mode 100644 eden/mononoke/scs/if/TARGETS delete mode 100644 eden/mononoke/scs/raw_client_lib/TARGETS delete mode 100644 eden/mononoke/scs/scs_errors/TARGETS delete mode 100644 eden/mononoke/scs/scs_methods/TARGETS delete mode 100644 eden/mononoke/scs/scs_server/TARGETS delete mode 100644 eden/mononoke/server/context/TARGETS delete mode 100644 eden/mononoke/server/metadata/TARGETS delete mode 100644 eden/mononoke/server/qps/TARGETS delete mode 100644 eden/mononoke/server/repo_listener/TARGETS delete mode 100644 eden/mononoke/server/session_id/TARGETS delete mode 100644 eden/mononoke/sshrelay/TARGETS delete mode 100644 eden/mononoke/streaming_clone/TARGETS delete mode 100644 eden/mononoke/tests/fixtures/TARGETS delete mode 100644 eden/mononoke/tests/integration/TARGETS delete mode 100644 eden/mononoke/tests/integration/backfill_derived/TARGETS delete mode 100644 eden/mononoke/tests/integration/backsyncer/TARGETS delete mode 100644 eden/mononoke/tests/integration/blobimport/TARGETS delete mode 100644 eden/mononoke/tests/integration/certs/TARGETS delete mode 100644 eden/mononoke/tests/integration/certs/facebook/TARGETS delete mode 100644 eden/mononoke/tests/integration/cross_repo/TARGETS delete mode 100644 eden/mononoke/tests/integration/edenapi/TARGETS delete mode 100644 eden/mononoke/tests/integration/ephemeral_store/TARGETS delete mode 100644 eden/mononoke/tests/integration/facebook/TARGETS delete mode 100644 eden/mononoke/tests/integration/facebook/belljar/TARGETS delete mode 100644 eden/mononoke/tests/integration/facebook/commit_cloud/TARGETS delete mode 100644 eden/mononoke/tests/integration/facebook/git_pushrebase/TARGETS delete mode 100644 eden/mononoke/tests/integration/facebook/mononoke_re_cas/TARGETS delete mode 100644 eden/mononoke/tests/integration/git_lfs/TARGETS delete mode 100644 eden/mononoke/tests/integration/gitbundle/TARGETS delete mode 100644 eden/mononoke/tests/integration/gitexport/TARGETS delete mode 100644 eden/mononoke/tests/integration/gitimport/TARGETS delete mode 100644 eden/mononoke/tests/integration/hooks/TARGETS delete mode 100644 eden/mononoke/tests/integration/import/TARGETS delete mode 100644 eden/mononoke/tests/integration/lfs_server/TARGETS delete mode 100644 eden/mononoke/tests/integration/megarepo/TARGETS delete mode 100644 eden/mononoke/tests/integration/modern_sync/TARGETS delete mode 100644 eden/mononoke/tests/integration/mononoke_git_server/TARGETS delete mode 100644 eden/mononoke/tests/integration/mononoke_hg_sync/TARGETS delete mode 100644 eden/mononoke/tests/integration/mononoke_re_cas/TARGETS delete mode 100644 eden/mononoke/tests/integration/newadmin/TARGETS delete mode 100644 eden/mononoke/tests/integration/push_redirector/TARGETS delete mode 100644 eden/mononoke/tests/integration/repo_import/TARGETS delete mode 100644 eden/mononoke/tests/integration/server/TARGETS delete mode 100644 eden/mononoke/tests/integration/sqlblob/TARGETS delete mode 100644 eden/mononoke/tests/integration/walker/TARGETS delete mode 100644 eden/mononoke/tests/utils/TARGETS delete mode 100644 eden/mononoke/third_party/git_delta/TARGETS delete mode 100644 eden/mononoke/time_window_counter/TARGETS delete mode 100644 eden/mononoke/tools/admin/TARGETS delete mode 100644 eden/mononoke/tools/example/TARGETS delete mode 100644 eden/mononoke/tools/executor/TARGETS delete mode 100644 eden/mononoke/tools/executor/facebook/TARGETS delete mode 100644 eden/mononoke/tools/facebook/backfill_bonsai_blob_mapping/TARGETS delete mode 100644 eden/mononoke/tools/facebook/config_parser/TARGETS delete mode 100644 eden/mononoke/tools/facebook/derived_data_metrics_tailer/TARGETS delete mode 100644 eden/mononoke/tools/facebook/derived_data_tailer/TARGETS delete mode 100644 eden/mononoke/tools/facebook/repo_metadata_logger/TARGETS delete mode 100644 eden/mononoke/tools/import/TARGETS delete mode 100644 eden/mononoke/tools/testtool/TARGETS delete mode 100644 eden/mononoke/walker/TARGETS delete mode 100644 eden/mononoke/wireproto_handler/TARGETS delete mode 100644 eden/scm/TARGETS delete mode 100644 eden/scm/exec/eden_apfs_mount_helper/TARGETS delete mode 100644 eden/scm/exec/fsprobe/TARGETS delete mode 100644 eden/scm/exec/scm_daemon/TARGETS delete mode 100644 eden/scm/exec/scratch/TARGETS delete mode 100644 eden/scm/hgcache_size_logger/TARGETS delete mode 100644 eden/scm/lib/async-runtime/TARGETS delete mode 100644 eden/scm/lib/atomicfile/TARGETS delete mode 100644 eden/scm/lib/auth/TARGETS delete mode 100644 eden/scm/lib/backingstore/TARGETS delete mode 100644 eden/scm/lib/backingstore/benches/TARGETS delete mode 100644 eden/scm/lib/blackbox/TARGETS delete mode 100644 eden/scm/lib/blackbox/serde_alt/TARGETS delete mode 100644 eden/scm/lib/cas-client/TARGETS delete mode 100644 eden/scm/lib/cas-client/re-cas-common/TARGETS delete mode 100644 eden/scm/lib/cas-client/rich-client/TARGETS delete mode 100644 eden/scm/lib/cas-client/thin-client/TARGETS delete mode 100644 eden/scm/lib/cats/TARGETS delete mode 100644 eden/scm/lib/checkout/TARGETS delete mode 100644 eden/scm/lib/clidispatch/TARGETS delete mode 100644 eden/scm/lib/clientinfo-async/TARGETS delete mode 100644 eden/scm/lib/clientinfo/TARGETS delete mode 100644 eden/scm/lib/clientinfo/facebook/TARGETS delete mode 100644 eden/scm/lib/cliparser/TARGETS delete mode 100644 eden/scm/lib/clone/TARGETS delete mode 100644 eden/scm/lib/commands/TARGETS delete mode 100644 eden/scm/lib/commands/cmdpy/TARGETS delete mode 100644 eden/scm/lib/commands/cmdutil/TARGETS delete mode 100644 eden/scm/lib/commands/commands/cmdclone/TARGETS delete mode 100644 eden/scm/lib/commands/commands/cmdconfig/TARGETS delete mode 100644 eden/scm/lib/commands/commands/cmdconfigfile/TARGETS delete mode 100644 eden/scm/lib/commands/commands/cmdgoto/TARGETS delete mode 100644 eden/scm/lib/commands/commands/cmdroot/TARGETS delete mode 100644 eden/scm/lib/commands/commands/cmdstatus/TARGETS delete mode 100644 eden/scm/lib/commands/commands/cmdversion/TARGETS delete mode 100644 eden/scm/lib/commands/commands/cmdwhereami/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugargs/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugcas/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugconfigtree/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugcurrentexe/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugdumpindexedlog/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugdumpinternalconfig/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugfsync/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebughttp/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebuglfsreceive/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebuglfssend/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugmergestate/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugmetrics/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugnetworkdoctor/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugpython/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugracyoutput/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugrefreshconfig/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugrevsets/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugrunlog/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugscmstore/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugscmstorereplay/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugsegmentgraph/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugstore/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugstructuredprogress/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugtestcommand/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugtop/TARGETS delete mode 100644 eden/scm/lib/commands/debugcommands/cmddebugwait/TARGETS delete mode 100644 eden/scm/lib/commandserver/TARGETS delete mode 100644 eden/scm/lib/commitcloudsubscriber/TARGETS delete mode 100644 eden/scm/lib/commits/TARGETS delete mode 100644 eden/scm/lib/commits/git/TARGETS delete mode 100644 eden/scm/lib/commits/trait/TARGETS delete mode 100644 eden/scm/lib/config/hgrc-parser/TARGETS delete mode 100644 eden/scm/lib/config/loader/TARGETS delete mode 100644 eden/scm/lib/config/model/TARGETS delete mode 100644 eden/scm/lib/config/set/TARGETS delete mode 100644 eden/scm/lib/config/static/TARGETS delete mode 100644 eden/scm/lib/config/static/macros/TARGETS delete mode 100644 eden/scm/lib/config/union/TARGETS delete mode 100644 eden/scm/lib/constructors/TARGETS delete mode 100644 eden/scm/lib/context/TARGETS delete mode 100644 eden/scm/lib/control-point/TARGETS delete mode 100644 eden/scm/lib/copytrace/TARGETS delete mode 100644 eden/scm/lib/cpython-async/TARGETS delete mode 100644 eden/scm/lib/cpython-ext/TARGETS delete mode 100644 eden/scm/lib/dag/TARGETS delete mode 100644 eden/scm/lib/dag/benches/TARGETS delete mode 100644 eden/scm/lib/dag/bindag/TARGETS delete mode 100644 eden/scm/lib/dag/dag-types/TARGETS delete mode 100644 eden/scm/lib/dag/fuzz/TARGETS delete mode 100644 eden/scm/lib/dag/gitdag/TARGETS delete mode 100644 eden/scm/lib/debugtop/TARGETS delete mode 100644 eden/scm/lib/dev-logger/TARGETS delete mode 100644 eden/scm/lib/doctor/network/TARGETS delete mode 100644 eden/scm/lib/drawdag/TARGETS delete mode 100644 eden/scm/lib/eagerepo/TARGETS delete mode 100644 eden/scm/lib/edenapi/TARGETS delete mode 100644 eden/scm/lib/edenapi/ext/TARGETS delete mode 100644 eden/scm/lib/edenapi/trait/TARGETS delete mode 100644 eden/scm/lib/edenapi/types/TARGETS delete mode 100644 eden/scm/lib/edenfs-client/TARGETS delete mode 100644 eden/scm/lib/edenfs_ffi/TARGETS delete mode 100644 eden/scm/lib/encoding/TARGETS delete mode 100644 eden/scm/lib/exchange/TARGETS delete mode 100644 eden/scm/lib/formatter/TARGETS delete mode 100644 eden/scm/lib/fsinfo/TARGETS delete mode 100644 eden/scm/lib/fsyncglob/TARGETS delete mode 100644 eden/scm/lib/gitcompat/TARGETS delete mode 100644 eden/scm/lib/gitstore/TARGETS delete mode 100644 eden/scm/lib/hg-http/TARGETS delete mode 100644 eden/scm/lib/hg-metrics/TARGETS delete mode 100644 eden/scm/lib/hgtime/TARGETS delete mode 100644 eden/scm/lib/hook/TARGETS delete mode 100644 eden/scm/lib/http-client/TARGETS delete mode 100644 eden/scm/lib/identity/TARGETS delete mode 100644 eden/scm/lib/indexedlog/TARGETS delete mode 100644 eden/scm/lib/insta_ext/TARGETS delete mode 100644 eden/scm/lib/io/TARGETS delete mode 100644 eden/scm/lib/io/term/logger/TARGETS delete mode 100644 eden/scm/lib/io/term/style/TARGETS delete mode 100644 eden/scm/lib/journal/TARGETS delete mode 100644 eden/scm/lib/lazystr/TARGETS delete mode 100644 eden/scm/lib/linelog/TARGETS delete mode 100644 eden/scm/lib/lz4-pyframe/TARGETS delete mode 100644 eden/scm/lib/manifest-tree/TARGETS delete mode 100644 eden/scm/lib/manifest/TARGETS delete mode 100644 eden/scm/lib/metalog/TARGETS delete mode 100644 eden/scm/lib/metrics/TARGETS delete mode 100644 eden/scm/lib/metrics/render/TARGETS delete mode 100644 eden/scm/lib/migration/TARGETS delete mode 100644 eden/scm/lib/mincode/TARGETS delete mode 100644 eden/scm/lib/minibench/TARGETS delete mode 100644 eden/scm/lib/minibench/examples/TARGETS delete mode 100644 eden/scm/lib/minibytes/TARGETS delete mode 100644 eden/scm/lib/mpatch-sys/TARGETS delete mode 100644 eden/scm/lib/mpatch/TARGETS delete mode 100644 eden/scm/lib/mutationstore/TARGETS delete mode 100644 eden/scm/lib/nodemap/TARGETS delete mode 100644 eden/scm/lib/nonblocking/TARGETS delete mode 100644 eden/scm/lib/pathhistory/TARGETS delete mode 100644 eden/scm/lib/pathmatcher/TARGETS delete mode 100644 eden/scm/lib/pathmatcher/types/TARGETS delete mode 100644 eden/scm/lib/pprint/TARGETS delete mode 100644 eden/scm/lib/procinfo/TARGETS delete mode 100644 eden/scm/lib/progress/model/TARGETS delete mode 100644 eden/scm/lib/progress/render/TARGETS delete mode 100644 eden/scm/lib/python-modules/TARGETS delete mode 100644 eden/scm/lib/python-modules/codegen/TARGETS delete mode 100644 eden/scm/lib/radixbuf/TARGETS delete mode 100644 eden/scm/lib/refencode/TARGETS delete mode 100644 eden/scm/lib/renderdag/TARGETS delete mode 100644 eden/scm/lib/repo/TARGETS delete mode 100644 eden/scm/lib/repo/repo-minimal-info/TARGETS delete mode 100644 eden/scm/lib/repo/url/TARGETS delete mode 100644 eden/scm/lib/repolock/TARGETS delete mode 100644 eden/scm/lib/revisionstore/TARGETS delete mode 100644 eden/scm/lib/revlogindex/TARGETS delete mode 100644 eden/scm/lib/revsets/TARGETS delete mode 100644 eden/scm/lib/runlog/TARGETS delete mode 100644 eden/scm/lib/sampling/TARGETS delete mode 100644 eden/scm/lib/sparse/TARGETS delete mode 100644 eden/scm/lib/spawn-ext/TARGETS delete mode 100644 eden/scm/lib/status/TARGETS delete mode 100644 eden/scm/lib/storemodel/TARGETS delete mode 100644 eden/scm/lib/streams/TARGETS delete mode 100644 eden/scm/lib/third-party/conch-parser/TARGETS delete mode 100644 eden/scm/lib/third-party/streampager/TARGETS delete mode 100644 eden/scm/lib/third-party/webview-sys/TARGETS delete mode 100644 eden/scm/lib/third-party/windows-curses/TARGETS delete mode 100644 eden/scm/lib/third-party/xdiff/TARGETS delete mode 100644 eden/scm/lib/thrift-types/TARGETS delete mode 100644 eden/scm/lib/tracing-analyzer/TARGETS delete mode 100644 eden/scm/lib/tracing-collector/TARGETS delete mode 100644 eden/scm/lib/tracing-reload/TARGETS delete mode 100644 eden/scm/lib/tracing-runtime-callsite/TARGETS delete mode 100644 eden/scm/lib/tracing-sampler/TARGETS delete mode 100644 eden/scm/lib/treestate/TARGETS delete mode 100644 eden/scm/lib/types/TARGETS delete mode 100644 eden/scm/lib/util/TARGETS delete mode 100644 eden/scm/lib/util/atexit/TARGETS delete mode 100644 eden/scm/lib/util/factory/TARGETS delete mode 100644 eden/scm/lib/util/format-util/TARGETS delete mode 100644 eden/scm/lib/util/hgplain/TARGETS delete mode 100644 eden/scm/lib/util/nodeipc/TARGETS delete mode 100644 eden/scm/lib/util/nodeipc/derive/TARGETS delete mode 100644 eden/scm/lib/util/procutil/TARGETS delete mode 100644 eden/scm/lib/util/pubsub/TARGETS delete mode 100644 eden/scm/lib/util/rewrite-macros/TARGETS delete mode 100644 eden/scm/lib/util/rewrite-macros/tree-pattern-match/TARGETS delete mode 100644 eden/scm/lib/util/testutil/TARGETS delete mode 100644 eden/scm/lib/util/time-interval/TARGETS delete mode 100644 eden/scm/lib/util/udsipc/TARGETS delete mode 100644 eden/scm/lib/version/TARGETS delete mode 100644 eden/scm/lib/vfs/TARGETS delete mode 100644 eden/scm/lib/vlqencoding/TARGETS delete mode 100644 eden/scm/lib/webview-app/TARGETS delete mode 100644 eden/scm/lib/workingcopy/TARGETS delete mode 100644 eden/scm/lib/workingcopy/repostate/TARGETS delete mode 100644 eden/scm/lib/xdiff-sys/TARGETS delete mode 100644 eden/scm/lib/xdiff/TARGETS delete mode 100644 eden/scm/lib/zstdelta/TARGETS delete mode 100644 eden/scm/lib/zstore/TARGETS delete mode 100644 eden/scm/newdoc/TARGETS delete mode 100644 eden/scm/sapling/cext/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyatexit/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyauth/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyblackbox/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pybytes/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pycats/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pycbor/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pycext/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pycheckout/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyclientinfo/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pycliparser/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyconchparser/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyconfigloader/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pycontext/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pycopytrace/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pydag/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pydiffhelpers/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pydirs/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pydoctor/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pydrawdag/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyeagerepo/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyedenapi/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyerror/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyexchange/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyfail/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyformatutil/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyfs/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pygitcompat/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pygitstore/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyhgmetrics/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyhgtime/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyidentity/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyindexedlog/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyio/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyjournal/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pylinelog/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pylock/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pylz4/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pymanifest/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pymetalog/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pymodules/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pymutationstore/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pynodeipc/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pynodemap/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pypathhistory/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pypathmatcher/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pypprint/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyprocess/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyprogress/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyrefencode/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyregex/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyrenderdag/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyrepo/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyrevisionstore/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyrevlogindex/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pysptui/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pystatus/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pystoremodel/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pythreading/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pytoml/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pytracing/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pytreestate/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyversion/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyvlq/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pywebview/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyworker/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyworkingcopy/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyworkingcopyclient/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyxdiff/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyzstd/TARGETS delete mode 100644 eden/scm/saplingnative/bindings/modules/pyzstore/TARGETS delete mode 100644 eden/scm/saplingnative/conch_parser/TARGETS delete mode 100644 eden/scm/saplingnative/pybindings/TARGETS delete mode 100644 eden/scm/tests/TARGETS delete mode 100644 eden/test-data/TARGETS delete mode 100644 eden/test_support/TARGETS diff --git a/addons/TARGETS b/addons/TARGETS deleted file mode 100644 index e6cf8e98e7ab6..0000000000000 --- a/addons/TARGETS +++ /dev/null @@ -1,40 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_genrule") -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbsource//xplat/third-party/yarn:yarn_offline_mirror_helper.bzl", "yarn_offline_mirror_path") - -oncall("scm_client_infra") - -python_binary( - name = "build-tar-script", - main_function = ".build-tar.main", - main_src = "build-tar.py", -) - -buck_genrule( - name = "isl-tar", - # While it may be tedious to maintain the list of srcs by hand, it ensures - # that changes in the addons/ folder that are not part of ISL do not trigger - # a rebuild. - srcs = glob( - [ - "eslint-rules/**", - "isl/**", - "isl-server/**", - "shared/**", - "components/**", - ], - exclude = [ - "**/node_modules/**", - "isl/build/**", - "isl-server/dist/**", - ], - ) + [ - ".eslintrc.js", - ".gitignore", - ".prettierrc", - "package.json", - "yarn.lock", - ], - out = "isl-dist.tar.xz", - cmd = '$(exe :build-tar-script) --yarn "$(exe fbsource//xplat/third-party/yarn:yarn)" --yarn-offline-mirror "{yarn_offline_mirror}" -o "$OUT" --src "$SRCDIR" --tmp "$TMP"'.format(yarn_offline_mirror = yarn_offline_mirror_path()), -) diff --git a/ci/TARGETS b/ci/TARGETS deleted file mode 100644 index f988ab3d5c526..0000000000000 --- a/ci/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") - -oncall("scm_client_infra") - -# This cannot live in the eden/oss/.github/workflows/ folder because the -# ".github" in the path is incompatible with main_module. -python_binary( - name = "gen_workflows", - srcs = [ - "gen_workflows.py", - ], - main_function = "eden.oss.ci.gen_workflows.main", - deps = [ - "fbsource//third-party/pypi/pyyaml:pyyaml", - ], -) diff --git a/common/rust/shed/hostcaps/TARGETS b/common/rust/shed/hostcaps/TARGETS deleted file mode 100644 index daf77fe8ef6ff..0000000000000 --- a/common/rust/shed/hostcaps/TARGETS +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("autocargo") - -rust_library( - name = "hostcaps", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "lints": { - "rust": { - "unexpected_cfgs": { - "check-cfg": ["cfg(fbcode_build)"], - "level": "warn", - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:derive_more", - "fbsource//third-party/rust:once_cell", - "//common/rust/fbwhoami:fbwhoami", - ], -) - -cpp_library( - name = "hostcaps_ffi", - headers = ["hostcaps.h"], - exported_deps = [ - ":hostcaps", - ], -) - -rust_binary( - name = "test-hostcaps", - srcs = ["src/bin/test.rs"], - crate_root = "src/bin/test.rs", - deps = [":hostcaps"], -) diff --git a/configerator/structs/scm/hg/hgclientconf/TARGETS b/configerator/structs/scm/hg/hgclientconf/TARGETS deleted file mode 100644 index 21346006e10b1..0000000000000 --- a/configerator/structs/scm/hg/hgclientconf/TARGETS +++ /dev/null @@ -1,14 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "config", - languages = [ - "py3", - "rust", - ], - py3_namespace = "configerator", - thrift_rust_options = "serde", - thrift_srcs = {"hgclient.thrift": []}, -) diff --git a/configerator/structs/scm/mononoke/blobimport/TARGETS b/configerator/structs/scm/mononoke/blobimport/TARGETS deleted file mode 100644 index 904e64b616592..0000000000000 --- a/configerator/structs/scm/mononoke/blobimport/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "blobimport_state", - languages = ["py-deprecated"], - no_plugin_deps = ["//thrift/annotation:all"], - py_base_module = "configerator.blobimport_state", - thrift_py_options = "json", - thrift_srcs = {"state.thrift": None}, -) diff --git a/configerator/structs/scm/mononoke/constants/TARGETS b/configerator/structs/scm/mononoke/constants/TARGETS deleted file mode 100644 index fdf929c7a3e46..0000000000000 --- a/configerator/structs/scm/mononoke/constants/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "constants", - languages = [ - "rust", - "py-deprecated", - ], - py_base_module = "configerator.mononoke", - thrift_py_options = "json", - thrift_rust_options = "serde", - thrift_srcs = {"constants.thrift": None}, - deps = [ - "//configerator/structs/scm/mononoke/sharding:sharding", - ], -) diff --git a/configerator/structs/scm/mononoke/lfs_server/TARGETS b/configerator/structs/scm/mononoke/lfs_server/TARGETS deleted file mode 100644 index 535d5fbcdc2e1..0000000000000 --- a/configerator/structs/scm/mononoke/lfs_server/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "lfs_server_config", - languages = [ - "rust", - ], - thrift_rust_options = "serde", - thrift_srcs = {"lfs_server.thrift": None}, - deps = [ - "//configerator/structs/scm/mononoke/ratelimiting:rate_limiting_config", - "//thrift/annotation:rust", - ], -) diff --git a/configerator/structs/scm/mononoke/mysql/replication_lag/TARGETS b/configerator/structs/scm/mononoke/mysql/replication_lag/TARGETS deleted file mode 100644 index d7f38e9631bf4..0000000000000 --- a/configerator/structs/scm/mononoke/mysql/replication_lag/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "replication_lag_config", - languages = [ - "rust", - ], - thrift_rust_options = "serde", - thrift_srcs = {"config.thrift": None}, - deps = [ - "//thrift/annotation:rust", - ], -) diff --git a/configerator/structs/scm/mononoke/observability/TARGETS b/configerator/structs/scm/mononoke/observability/TARGETS deleted file mode 100644 index 880413a59c29f..0000000000000 --- a/configerator/structs/scm/mononoke/observability/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "observability_config", - languages = [ - "py3", - "rust", - "cpp2", - ], - py3_namespace = "mononoke.observability", - thrift_py_options = "json", - thrift_rust_options = [ - "deprecated_default_enum_min_i32", - "serde", - ], - thrift_srcs = {"observability_config.thrift": None}, - deps = [ - "//thrift/annotation:rust", - ], -) diff --git a/configerator/structs/scm/mononoke/qps/TARGETS b/configerator/structs/scm/mononoke/qps/TARGETS deleted file mode 100644 index ec04f0ccc8d03..0000000000000 --- a/configerator/structs/scm/mononoke/qps/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "qps_config", - languages = [ - "py3", - "rust", - "cpp2", - ], - py3_namespace = "mononoke.qps", - thrift_py_options = "json", - thrift_rust_options = "serde", - thrift_srcs = {"qps_config.thrift": None}, - deps = [ - "//thrift/annotation:rust", - ], -) diff --git a/configerator/structs/scm/mononoke/ratelimiting/TARGETS b/configerator/structs/scm/mononoke/ratelimiting/TARGETS deleted file mode 100644 index c752e59c45075..0000000000000 --- a/configerator/structs/scm/mononoke/ratelimiting/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "rate_limiting_config", - languages = [ - "rust", - ], - thrift_rust_options = [ - "deprecated_default_enum_min_i32", - "serde", - ], - thrift_srcs = {"ratelimits.thrift": None}, - deps = [ - "//thrift/annotation:cpp", - "//thrift/annotation:rust", - ], -) diff --git a/configerator/structs/scm/mononoke/redaction/TARGETS b/configerator/structs/scm/mononoke/redaction/TARGETS deleted file mode 100644 index 8f846d09727d4..0000000000000 --- a/configerator/structs/scm/mononoke/redaction/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "redaction_set", - languages = [ - "rust", - ], - thrift_py_options = "json", - thrift_rust_options = "serde", - thrift_srcs = {"redaction_set.thrift": None}, - deps = [ - "//thrift/annotation:rust", - ], -) diff --git a/configerator/structs/scm/mononoke/repos/TARGETS b/configerator/structs/scm/mononoke/repos/TARGETS deleted file mode 100644 index 6149ae2215178..0000000000000 --- a/configerator/structs/scm/mononoke/repos/TARGETS +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "repos", - languages = [ - "python", - "rust", - "py-deprecated", - ], - py3_namespace = "mononoke.repos", - py_base_module = "configerator.mononoke", - rust_autocargo = {"cargo_toml_dir": "repos"}, - thrift_py_options = "json", - thrift_rust_options = [ - "deprecated_default_enum_min_i32", - "serde", - ], - thrift_srcs = {"repos.thrift": None}, - deps = [ - "//thrift/annotation:rust", - ], -) - -thrift_library( - name = "commitsync", - languages = [ - "rust", - "py-deprecated", - ], - py_base_module = "configerator.mononoke", - rust_autocargo = {"cargo_toml_dir": "commitsync"}, - thrift_py_options = "json", - thrift_rust_options = "serde", - thrift_srcs = {"commitsync.thrift": None}, - deps = [ - ":repos", - "//thrift/annotation:rust", - ], -) diff --git a/configerator/structs/scm/mononoke/sharding/TARGETS b/configerator/structs/scm/mononoke/sharding/TARGETS deleted file mode 100644 index ac3268975d13f..0000000000000 --- a/configerator/structs/scm/mononoke/sharding/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "sharding", - languages = [ - "rust", - "py-deprecated", - ], - py_base_module = "configerator.mononoke", - thrift_py_options = "json", - thrift_rust_options = "serde", - thrift_srcs = {"sharding.thrift": None}, -) diff --git a/configerator/structs/scm/mononoke/xdb_gc/TARGETS b/configerator/structs/scm/mononoke/xdb_gc/TARGETS deleted file mode 100644 index d5c9d56c721fe..0000000000000 --- a/configerator/structs/scm/mononoke/xdb_gc/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("source_control") - -thrift_library( - name = "xdb_gc_structs", - languages = [ - "rust", - "py-deprecated", - ], - py_base_module = "configerator.mononoke", - thrift_py_options = "json", - thrift_rust_options = "serde", - thrift_srcs = {"xdb_gc.thrift": None}, - deps = [ - "//thrift/annotation:rust", - ], -) diff --git a/eden/TARGETS b/eden/TARGETS deleted file mode 100644 index 5f193066db325..0000000000000 --- a/eden/TARGETS +++ /dev/null @@ -1,83 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_genrule") -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_client_infra") - -# The :eden rule is a convenience to ensure that the EdenFS CLI, daemon, and SCM -# integration are built. -buck_genrule( - name = "eden", - out = "eden-stamp", - cmd = "echo $(location //eden/fs/cli:edenfsctl) " + - "$(location //eden/fs/service:edenfs) " + - "$(location //eden/fs/service:edenfs_privhelper) " + - "> $OUT", - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - metadata = { - "buck.cfg_modifiers": [ - "fbcode//eden/scm/lib/backingstore:edenfs-include-cas", - ], - }, -) - -fbpkg.builder( - name = "scm.edenfs", - architectures = [ - "x86_64", - "aarch64", - ], - buck_opts = fbpkg.buck_opts( - config = { - "fbcode.dwp": "false", - }, - mode = "opt", - ), - - # this is doing (almost) the same as eden/fs/facebook/packaging/packman.yml - # for the config we cannot do with fbpkg.builder (e.g. set mode for a binary) we - # should rely on Chef to config correctly. - # - # TODO: - # - expiry - # - mode: edenfs_privhelper : 04755 - # - dirs - # - path: /etc/eden - # mode: '0755' - # - path: /etc/eden/config.d - # mode: '0755' - path_actions = { - # these should be put under "/usr/local/bin/" - "bin/eden": fbpkg.symlink("bin/edenfsctl"), - "bin/edenfsctl": fbpkg.copy("//eden/fs/cli_rs/edenfsctl:edenfsctl"), - "bin/edenfsctl.real": fbpkg.copy("//eden/fs/cli:edenfsctl"), - - # static files - "etc/eden/NOT_MOUNTED_README.txt": "fs/facebook/packaging/NOT_MOUNTED_README.txt", - "etc/eden/config.d": "fs/facebook/packaging/config.d", - "etc/eden/ignore": "fs/facebook/packaging/ignore", - - # static file for DevFeature installation instructions - "install.toml": "facebook/dev_feature_install.toml", - - # these should be put under "/usr/local/libexec/eden/" - "libexec/eden/eden-fb303-collector": fbpkg.copy("//eden/fs/facebook:eden-fb303-collector"), - "libexec/eden/eden_fsck": fbpkg.copy("//eden/fs/inodes/fscatalog:eden_fsck"), - "libexec/eden/eden_rg_perf_script": "fs/scripts/facebook/rg_perf_test", - "libexec/eden/eden_store_util": fbpkg.copy("//eden/fs/store:eden_store_util"), - "libexec/eden/eden_trace_stream": fbpkg.copy("//eden/fs/cli/trace:trace_stream"), - "libexec/eden/edenfs": fbpkg.copy("//eden/fs/service:edenfs"), - "libexec/eden/edenfs_config_manager": fbpkg.copy("//eden/fs/config/facebook:edenfs_config_manager"), - "libexec/eden/edenfs_monitor": fbpkg.copy("//eden/fs/monitor:edenfs_monitor"), - "libexec/eden/edenfs_privhelper": fbpkg.copy("//eden/fs/service:edenfs_privhelper_with_setuid_root"), - "libexec/eden/edenfs_restarter": fbpkg.copy("//eden/fs/facebook:edenfs_restarter"), - - # static file for eden-locale - "locale/en/LC_MESSAGES/libc.mo": "locale/glibc_en.mo", - - # static file for Sandcastle live-installation - "sandcastle_install.sh": "facebook/sandcastle_install.sh", - }, -) diff --git a/eden/facebook/TARGETS b/eden/facebook/TARGETS deleted file mode 100644 index 8528841bd22db..0000000000000 --- a/eden/facebook/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("//eden:defs.bzl", "make_rule_compatible_with") -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_client_infra") - -python_binary( - name = "fb-eden-tw-clone", - srcs = ["fb_eden_tw_clone.py"], - main_function = "eden.facebook.fb_eden_tw_clone.main_2", -) - -make_rule_compatible_with( - name = "fb.eden.tw.clone", - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - path_actions = { - "fb-eden-tw-clone.par": ":fb-eden-tw-clone", - }, - rule = fbpkg.builder, -) diff --git a/eden/facebook/test-data/TARGETS b/eden/facebook/test-data/TARGETS deleted file mode 100644 index 1cdfee3f80688..0000000000000 --- a/eden/facebook/test-data/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup") - -oncall("scm_client_infra") - -buck_filegroup( - name = "normalized-hostname", - srcs = glob(["**/*"]), -) diff --git a/eden/fs/TARGETS b/eden/fs/TARGETS deleted file mode 100644 index 81c7edd4fe424..0000000000000 --- a/eden/fs/TARGETS +++ /dev/null @@ -1,11 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "config", - headers = ["eden-config.h"], - exported_deps = [ - "//common/base:build_info_values", - ], -) diff --git a/eden/fs/benchmarks/TARGETS b/eden/fs/benchmarks/TARGETS deleted file mode 100644 index e433bbc620b1e..0000000000000 --- a/eden/fs/benchmarks/TARGETS +++ /dev/null @@ -1,157 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_client_infra") - -# Run with --bench -rust_binary( - name = "benchmarks", - srcs = ["benchmarks.rs"], - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "windows", - [ - "fbsource//third-party/rust:winapi", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:criterion", - "fbsource//third-party/rust:rand", - ], -) - -cpp_binary( - name = "random_writes", - srcs = ["random_writes.cpp"], - deps = [ - "//eden/common/utils/benchharness:benchharness", - "//folly:exception", - "//folly:file", - "//folly:file_util", - "//folly:string", - "//folly/logging:logging", - "//folly/portability:gflags", - ], -) - -cpp_binary( - name = "stat", - srcs = ["stat.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/utils/benchharness:benchharness", - "//folly:exception", - "//folly:file", - "//folly/portability:gflags", - ], -) - -cpp_binary( - name = "get_sha1", - srcs = ["get_sha1.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "fbsource//third-party/benchmark:benchmark", - "//eden/common/utils/benchharness:benchharness", - "//eden/fs/service:thrift-cpp2-services", - "//folly:file", - "//folly/container:array", - "//folly/init:init", - "//folly/io/async:async_socket", - "//folly/logging:logging", - "//folly/synchronization/test:barrier", - "//thrift/lib/cpp2/async:header_client_channel", - ], - external_deps = [ - ("boost", None, "boost_filesystem"), - ], -) - -cpp_binary( - name = "getxattr", - srcs = ["getxattr.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/utils/benchharness:benchharness", - "//folly:exception", - "//folly:file", - "//folly/portability:gflags", - ], -) - -cpp_binary( - name = "open_close_parallel", - srcs = ["open_close_parallel.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/utils/benchharness:benchharness", - "//folly:exception", - "//folly:likely", - "//folly/init:init", - "//folly/portability:gflags", - "//folly/portability:unistd", - "//folly/synchronization/test:barrier", - ], -) - -cpp_binary( - name = "glob", - srcs = ["glob.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/utils:path", - "//eden/common/utils/benchharness:benchharness", - "//eden/fs/service:thrift-cpp2-services", - "//folly/io/async:event_base_thread", - "//thrift/lib/cpp2/async:header_client_channel", - "//watchman/cppclient:cppclient", - ], -) - -cpp_binary( - name = "set_path_object_id", - srcs = ["set_path_object_id.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/utils:path", - "//eden/common/utils/benchharness:benchharness", - "//eden/fs/service:thrift-cpp2-services", - "//folly/io/async:event_base_thread", - "//folly/portability:gflags", - "//thrift/lib/cpp2/async:header_client_channel", - ], - external_deps = [ - ("boost", None, "boost_uuid"), - ], -) diff --git a/eden/fs/benchmarks/language/TARGETS b/eden/fs/benchmarks/language/TARGETS deleted file mode 100644 index bad16fabafddd..0000000000000 --- a/eden/fs/benchmarks/language/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark") - -oncall("scm_client_infra") - -cpp_benchmark( - name = "language", - srcs = glob(["*.cpp"]), - deps = [ - "//eden/common/utils/benchharness:benchharness", - "//folly:try", - ], -) diff --git a/eden/fs/benchmarks/os/TARGETS b/eden/fs/benchmarks/os/TARGETS deleted file mode 100644 index 9bee6d2bbc085..0000000000000 --- a/eden/fs/benchmarks/os/TARGETS +++ /dev/null @@ -1,14 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark") - -oncall("scm_client_infra") - -cpp_benchmark( - name = "os", - srcs = glob(["*.cpp"]), - deps = [ - "//eden/common/os:os", - "//eden/common/utils/benchharness:benchharness", - "//folly:try", - "//folly/system:pid", - ], -) diff --git a/eden/fs/cli/TARGETS b/eden/fs/cli/TARGETS deleted file mode 100644 index e7ab3c7c8927d..0000000000000 --- a/eden/fs/cli/TARGETS +++ /dev/null @@ -1,252 +0,0 @@ -load("@fbcode//eden:defs.bzl", "get_dev_edenfsctl_env", "get_oss_suffix") -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_command_alias") -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -# This exists to compile and bake the correct locations of helper binaries -# into the environment so `buck run edenfsctl` works from source. Uses the -# system privhelper for privileged actions (such as mounting) as long as no -# external sources set the EDENFS_PRIVHELPER_PATH environment variable. -buck_command_alias( - name = "edenfsctl-run", - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - env = get_dev_edenfsctl_env(), - exe = ":edenfsctl", - metadata = { - "buck.cfg_modifiers": [ - "fbcode//eden/scm/lib/backingstore:edenfs-include-cas", - ], - }, -) - -buck_command_alias( - name = "edenfsctl-run-oss", - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - env = get_dev_edenfsctl_env(suffix = get_oss_suffix()), - exe = ":edenfsctl", -) - -# Similar to above alias, but this target will utilize a development privhelper -# instead of the system (setuid-root) privhelper. This will require the use of -# passwordless sudo when starting EdenFS. -buck_command_alias( - name = "edenfsctl-dev-run", - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - env = get_dev_edenfsctl_env({"EDENFS_PRIVHELPER_PATH": "$(location //eden/fs/service:edenfs_privhelper)"}), - exe = ":edenfsctl-with-privhelper", - metadata = { - "buck.cfg_modifiers": [ - "fbcode//eden/scm/lib/backingstore:edenfs-include-cas", - ], - }, -) - -python_binary( - name = "edenfsctl-with-privhelper", - srcs = [], - main_function = "eden.fs.cli.main.zipapp_main", - deps = [ - ":main_lib", - "//eden/fs/privhelper:privhelper", - ], -) - -python_binary( - name = "edenfsctl", - srcs = [], - main_function = "eden.fs.cli.main.zipapp_main", - deps = [ - ":main_lib", - ], -) - -python_binary( - name = "repl", - srcs = ["repl.py"], - main_function = "eden.fs.cli.repl.main", - deps = [ - "fbsource//third-party/pypi/ipython:ipython", - ":main_lib", # @manual - ], -) - -python_library( - name = "main_lib", - srcs = [ - "main.py", - ], - deps = [ - ":constants", - ":lib", - ":telemetry", - ":trace", - ":version", - "//cli/py/par_telemetry:lib", - "//eden/fs/cli/facebook:util", - "//eden/fs/py/eden/thrift:legacy", - "//eden/fs/service:thrift-py-deprecated", - "//fb303/thrift:fb303_core-py", - "//thrift/lib/py:server_base", - ], -) - -python_library( - name = "constants", - srcs = [ - "constants.py", - ], -) - -python_library( - name = "hostname", - srcs = [ - "hostname.py", - ], - deps = [ - "//eden/fs/cli/facebook:hostcaps", - ], -) - -python_library( - name = "lib", - srcs = [ - "buck.py", - "cmd_util.py", - "config.py", - "configinterpolator.py", - "configutil.py", - "daemon.py", - "daemon_util.py", - "debug.py", - "debug_posix.py", - "debug_windows.py", - "doctor/__init__.py", - "doctor/check_filesystems.py", - "doctor/check_hg.py", - "doctor/check_network.py", - "doctor/check_os.py", - "doctor/check_recent_writes.py", - "doctor/check_redirections.py", - "doctor/check_rogue_edenfs.py", - "doctor/check_stale_mounts.py", - "doctor/check_watchman.py", - "doctor/facebook/__init__.py", - "doctor/facebook/check_backing_repos.py", - "doctor/facebook/check_mdatp.py", - "doctor/facebook/check_vscode_extensions.py", - "doctor/facebook/check_x509.py", - "doctor/facebook/internal_consts.py", - "doctor/facebook/internal_error_messages.py", - "doctor/facebook/lib/fake_vscode_extensions_checker.py", - "doctor/problem.py", - "doctor/util.py", - "file_handler_tools.py", - "filesystem.py", - "hg_util.py", - "logfile.py", - "mtab.py", - "overlay.py", - "prefetch.py", - "prjfs.py", - "prompt.py", - "rage.py", - "redirect.py", - "stats.py", - "stats_print.py", - "subcmd.py", - "tabulate.py", - "top.py", - "trace_cmd.py", - "ui.py", - "util.py", - "win_ui.py", - ], - os_deps = [ - ( - "linux", - [ - "//eden/fs/cli/facebook:telemetry", - ], - ), - ], - deps = [ - "fbsource//third-party/pypi/filelock:filelock", - "fbsource//third-party/pypi/psutil:psutil", - "fbsource//third-party/pypi/toml:toml", - "fbsource//third-party/pypi/tqdm:tqdm", - ":hostname", - ":proc_utils", - ":telemetry", - ":version", - "//eden/fs/cli/facebook:hostcaps", - "//eden/fs/cli/facebook:rage", - "//eden/fs/inodes/overlay:serialization-py-deprecated", - "//eden/fs/py/eden:dirstate", - "//eden/fs/py/eden/thrift:legacy", - "//eden/fs/service:thrift-py-deprecated", - "//fb303/thrift:fb303_core-py", - "//thrift/lib/py:base", - "//thrift/lib/py:server_base", - "//thrift/lib/py/util:inspect", - "//thrift/lib/py/util:py_util", - ], -) - -python_library( - name = "proc_utils", - srcs = [ - "proc_utils.py", - "proc_utils_win.py", - ], - os_deps = [ - ( - "linux", - ["//common/base/pid_info/py:build_info_lib"], - ), - ], - deps = [ - "//eden/fs/py/eden/thrift:legacy", - ], -) - -python_library( - name = "telemetry", - srcs = [ - "telemetry.py", - ], - deps = [ - ":hostname", - ":version", - ], -) - -python_library( - name = "version", - srcs = [ - "version.py", - ], - deps = [ - "//eden/fs/py/eden:config", - ], -) - -python_library( - name = "trace", - srcs = [ - "trace.py", - ], - deps = [ - ":lib", - ], -) diff --git a/eden/fs/cli/doctor/test/TARGETS b/eden/fs/cli/doctor/test/TARGETS deleted file mode 100644 index 42b6d0ad95429..0000000000000 --- a/eden/fs/cli/doctor/test/TARGETS +++ /dev/null @@ -1,44 +0,0 @@ -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") - -oncall("scm_client_infra") - -python_unittest( - name = "test", - srcs = [ - "corrupt_hg_test.py", - "disk_usage_test.py", - "doctor_test.py", - "os_test.py", - "util_test.py", - ], - supports_static_listing = False, - deps = [ - "//eden/fs/cli:lib", - "//eden/fs/cli/doctor/test/lib:lib", - "//eden/fs/cli/test/lib:lib", - "//eden/fs/service:thrift-py-deprecated", - "//fb303/thrift:fb303_core-py", - ], -) - -python_unittest( - name = "test_unix", - srcs = [ - "corrupt_hg_unix_test.py", - "doctor_unix_test.py", - "hang_mount_test.py", - "multiple_edenfs_test.py", - "nfs_test.py", - "stale_mount_test.py", - ], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/fs/cli:lib", - "//eden/fs/cli:proc_utils", - "//eden/fs/cli/doctor/test/lib:lib", - "//eden/fs/cli/test/lib:lib", - ], -) diff --git a/eden/fs/cli/doctor/test/lib/TARGETS b/eden/fs/cli/doctor/test/lib/TARGETS deleted file mode 100644 index 03e1a7e59b332..0000000000000 --- a/eden/fs/cli/doctor/test/lib/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -python_library( - name = "lib", - srcs = glob(["*.py"]), - deps = [ - "//eden/fs/cli:lib", - "//eden/fs/cli:version", - "//eden/fs/cli/test/lib:lib", - "//eden/fs/py/eden:dirstate", - "//eden/fs/service:thrift-py-deprecated", - "//eden/test_support:py", - "//fb303/thrift:fb303_core-py", - ], -) diff --git a/eden/fs/cli/facebook/TARGETS b/eden/fs/cli/facebook/TARGETS deleted file mode 100644 index 6442fb7a2f4c6..0000000000000 --- a/eden/fs/cli/facebook/TARGETS +++ /dev/null @@ -1,71 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -python_binary( - name = "dump_to_artillery", - compatible_with = [ - "ovr_config//os:linux", - ], - main_function = "eden.fs.cli.facebook.trace.dump_to_artillery", - deps = [ - ":trace", - ], -) - -python_library( - name = "trace", - srcs = [ - "trace.py", - ], - deps = [ - "//artillery/artillery2/python/api:artillery2_api", - "//eden/fs/cli:lib", - "//eden/fs/service:thrift-py-deprecated", - ], -) - -python_library( - name = "telemetry", - srcs = [ - "scuba_telemetry.py", - ], - deps = [ - ":hostcaps", - "//eden/fs/cli:telemetry", - "//rfe/scubadata:scubadata_py3", - ], -) - -python_binary( - name = "test_hostcaps", - main_function = "eden.fs.cli.facebook.hostcaps.main", - deps = [":hostcaps"], -) - -python_library( - name = "hostcaps", - srcs = [ - "hostcaps.py", - ], - deps = [ - "//libfb/py:fbwhoami", - ], -) - -python_library( - name = "util", - srcs = [ - "util.py", - ], - deps = [ - "//eden/fs/cli:lib", - "//eden/fs/cli:proc_utils", - ], -) - -python_library( - name = "rage", - srcs = ["rage.py"], -) diff --git a/eden/fs/cli/facebook/test/TARGETS b/eden/fs/cli/facebook/test/TARGETS deleted file mode 100644 index 1b94a045379a0..0000000000000 --- a/eden/fs/cli/facebook/test/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") - -oncall("scm_client_infra") - -python_unittest( - name = "test", - srcs = glob(["*.py"]), - compatible_with = [ - "ovr_config//os:linux", - ], - env = { - "TEST_DATA": "$(location //eden/facebook/test-data:normalized-hostname)", - }, - deps = [ - "//artillery/artillery2/python/api:artillery2_api", - "//eden/fs/cli:hostname", - "//eden/fs/cli/facebook:hostcaps", - "//eden/fs/cli/facebook:trace", - "//eden/fs/service:thrift-py-deprecated", - "//libfb/py:fbwhoami", - "//testslide/testslide:testslide", - ], -) diff --git a/eden/fs/cli/test/TARGETS b/eden/fs/cli/test/TARGETS deleted file mode 100644 index 8f91f2e98d61b..0000000000000 --- a/eden/fs/cli/test/TARGETS +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") - -oncall("scm_client_infra") - -python_unittest( - name = "test", - srcs = glob(["*.py"]), - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - env = { - "EDENFS_UNITTEST": "1", - }, - deps = [ - "fbsource//third-party/pypi/toml:toml", - "//eden/fs/cli:lib", - "//eden/fs/cli:main_lib", - "//eden/fs/cli:proc_utils", - "//eden/fs/cli:telemetry", - "//eden/fs/cli:version", - "//eden/fs/cli/doctor/test/lib:lib", - "//eden/fs/cli/test/lib:lib", - "//eden/fs/service:thrift-py-deprecated", - "//eden/test_support:py", - ], -) - -python_unittest( - name = "wintests", - srcs = glob(["windows/*.py"]), - compatible_with = [ - "ovr_config//os:windows", - ], - env = { - "EDENFS_UNITTEST": "1", - }, - deps = [ - "//eden/fs/cli:lib", - ], -) diff --git a/eden/fs/cli/test/lib/TARGETS b/eden/fs/cli/test/lib/TARGETS deleted file mode 100644 index f111003ec6423..0000000000000 --- a/eden/fs/cli/test/lib/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -python_library( - name = "lib", - srcs = glob(["*.py"]), - deps = [ - "//eden/fs/cli:lib", - "//eden/fs/cli:proc_utils", - ], -) diff --git a/eden/fs/cli/trace/TARGETS b/eden/fs/cli/trace/TARGETS deleted file mode 100644 index 0c058b1b09bf3..0000000000000 --- a/eden/fs/cli/trace/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") - -oncall("scm_client_infra") - -cpp_binary( - name = "trace_stream", - srcs = [ - "trace_stream.cpp", - ], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - "ovr_config//os:windows", - ], - deps = [ - "fbsource//third-party/cpptoml:cpptoml", - "fbsource//third-party/fmt:fmt", - "//eden/common/utils:path", - "//eden/common/utils:utils", - "//eden/fs/service:thrift-streaming-cpp2-clients", - "//eden/fs/service:thrift-streaming-cpp2-types", - "//folly:portability", - "//folly/init:init", - "//folly/io/async:async_socket", - "//folly/io/async:scoped_event_base_thread", - "//folly/lang:to_ascii", - "//thrift/lib/cpp/util:enum_utils", - "//thrift/lib/cpp2/async:rocket_client_channel", - "//thrift/lib/cpp2/protocol:protocol", - ], -) diff --git a/eden/fs/cli_rs/TARGETS b/eden/fs/cli_rs/TARGETS deleted file mode 100644 index 86a6c51f8e5a7..0000000000000 --- a/eden/fs/cli_rs/TARGETS +++ /dev/null @@ -1,88 +0,0 @@ -load("@fbcode//eden:defs.bzl", "get_dev_edenfsctl_env", "get_oss_suffix") -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_command_alias") -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_client_infra") - -rust_binary( - name = "edenfsctl-wrapper", - srcs = ["facebook/edenfsctl.rs"], - autocargo = { - "ignore_rule": True, - }, - crate_root = "facebook/edenfsctl.rs", - resources = { - "edenfsctl": "//eden/fs/cli_rs/edenfsctl:edenfsctl", - "edenfsctl_python": "//eden/fs/cli:edenfsctl", - }, - deps = [ - "fbsource//third-party/rust:buck-resources", - ], -) - -rust_binary( - name = "edenfsctl-wrapper-with-privhelper", - srcs = ["facebook/edenfsctl.rs"], - autocargo = { - "ignore_rule": True, - }, - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - crate_root = "facebook/edenfsctl.rs", - resources = { - "edenfsctl": "//eden/fs/cli_rs/edenfsctl:edenfsctl", - "edenfsctl_python": "//eden/fs/cli:edenfsctl", - }, - deps = [ - "fbsource//third-party/rust:buck-resources", - "//eden/fs/privhelper:privhelper", - ], -) - -# Similar to the Python version of this alias -# (found in fbcode/eden/fs/cli/TARGETS), this exists to compile and bake the -# correct locations of helper binaries into the environment so -# `buck run edenfsctl` works from source. Uses the system privhelper for -# privileged actions (such as mounting) as long as no external sources set the -# EDENFS_PRIVHELPER_PATH environment variable. -buck_command_alias( - name = "edenfsctl-run", - env = get_dev_edenfsctl_env(), - exe = ":edenfsctl-wrapper", - metadata = { - "buck.cfg_modifiers": [ - "fbcode//eden/scm/lib/backingstore:edenfs-include-cas", - ], - }, -) - -buck_command_alias( - name = "edenfsctl-run-oss", - env = get_dev_edenfsctl_env( - suffix = get_oss_suffix(), - ), - exe = ":edenfsctl-wrapper", -) - -# Similar to above alias, but this target will utilize a development privhelper -# instead of the system (setuid-root) privhelper. This will require the use of -# passwordless sudo when starting EdenFS. -buck_command_alias( - name = "edenfsctl-dev-run", - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - env = get_dev_edenfsctl_env({ - # Add those so that they get materialized. - "EDENFS_PRIVHELPER_PATH": "$(location //eden/fs/service:edenfs_privhelper)", - }), - exe = ":edenfsctl-wrapper-with-privhelper", - metadata = { - "buck.cfg_modifiers": [ - "fbcode//eden/scm/lib/backingstore:edenfs-include-cas", - ], - }, -) diff --git a/eden/fs/cli_rs/edenfs-client/TARGETS b/eden/fs/cli_rs/edenfs-client/TARGETS deleted file mode 100644 index a7112ed0ee7f7..0000000000000 --- a/eden/fs/cli_rs/edenfs-client/TARGETS +++ /dev/null @@ -1,62 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_client_infra") - -rust_library( - name = "edenfs-client", - srcs = glob(["src/**/*.rs"]), - os_deps = [ - ( - "windows", - [ - "//eden/scm/exec/scratch:mkscratch", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:psutil", - ], - ), - ], - test_deps = [ - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde_test", - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:dirs", - "fbsource//third-party/rust:dunce", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:pathdiff", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:shlex", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:subprocess", - "fbsource//third-party/rust:sysinfo", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:toml", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:uuid", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbthrift_ext:socket", - "//common/rust/shed/tokio-uds-compat:tokio-uds-compat", - "//common/rust/thrift/bareclient:thriftclient", - "//eden/fs/cli_rs/edenfs-config:edenfs-config", - "//eden/fs/cli_rs/edenfs-error:edenfs-error", - "//eden/fs/cli_rs/edenfs-utils:edenfs-utils", - "//eden/fs/cli_rs/facebook/edenfs-telemetry:edenfs-telemetry", - "//eden/fs/service:thrift-streaming-rust", - "//eden/fs/service:thrift-streaming-rust-clients", - "//eden/fs/service:thrift-streaming-rust-thriftclients", - "//eden/scm/lib/atomicfile:atomicfile", - "//eden/scm/lib/thrift-types:thrift-types", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/fs/cli_rs/edenfs-commands/TARGETS b/eden/fs/cli_rs/edenfs-commands/TARGETS deleted file mode 100644 index 1056a6dc149ca..0000000000000 --- a/eden/fs/cli_rs/edenfs-commands/TARGETS +++ /dev/null @@ -1,59 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_client_infra") - -rust_library( - name = "edenfs-commands", - srcs = glob(["src/**/*.rs"]), - named_deps = { - "hg_util": "//eden/scm/lib/util:util", - }, - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:shlex", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:shlex", - ], - ), - ], - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap-3", - "fbsource//third-party/rust:colored", - "fbsource//third-party/rust:comfy-table", - "fbsource//third-party/rust:crossterm", - "fbsource//third-party/rust:dialoguer", - "fbsource//third-party/rust:dirs", - "fbsource//third-party/rust:dunce", - "fbsource//third-party/rust:fail", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:subprocess", - "fbsource//third-party/rust:sysinfo", - "fbsource//third-party/rust:tabular", - "fbsource//third-party/rust:termwiz", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:toml", - "fbsource//third-party/rust:tracing", - "//eden/fs/cli_rs/edenfs-client:edenfs-client", - "//eden/fs/cli_rs/edenfs-error:edenfs-error", - "//eden/fs/cli_rs/edenfs-utils:edenfs-utils", - "//eden/fs/cli_rs/facebook/edenfs-telemetry:edenfs-telemetry", - "//eden/scm/lib/io:io", - "//eden/scm/lib/io/term/logger:termlogger", - "//eden/scm/lib/thrift-types:thrift-types", - ], -) diff --git a/eden/fs/cli_rs/edenfs-config/TARGETS b/eden/fs/cli_rs/edenfs-config/TARGETS deleted file mode 100644 index 4bb3cbe90bd42..0000000000000 --- a/eden/fs/cli_rs/edenfs-config/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_client_infra") - -rust_library( - name = "edenfs-config", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:toml", - "fbsource//third-party/rust:tracing", - "//eden/fs/cli_rs/edenfs-error:edenfs-error", - "//eden/fs/cli_rs/stack-config:stack-config", - ], -) diff --git a/eden/fs/cli_rs/edenfs-error/TARGETS b/eden/fs/cli_rs/edenfs-error/TARGETS deleted file mode 100644 index a6ce16f0fccc7..0000000000000 --- a/eden/fs/cli_rs/edenfs-error/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_client_infra") - -rust_library( - name = "edenfs-error", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ], -) diff --git a/eden/fs/cli_rs/edenfs-utils/TARGETS b/eden/fs/cli_rs/edenfs-utils/TARGETS deleted file mode 100644 index cad9b41a059bb..0000000000000 --- a/eden/fs/cli_rs/edenfs-utils/TARGETS +++ /dev/null @@ -1,47 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_client_infra") - -rust_library( - name = "edenfs-utils", - srcs = glob(["src/**/*.rs"]), - os_deps = [ - ( - "macos", - [ - "fbsource//third-party/rust:nix", - ], - ), - ( - "linux", - [ - "fbsource//third-party/rust:nix", - ], - ), - ( - "windows", - [ - "fbsource//third-party/rust:winapi", - ], - ), - ], - test_deps = [ - "fbsource//third-party/rust:lazy_static", - ], - test_os_deps = [ - ( - "windows", - [ - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:quickcheck_macros", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:sysinfo", - "fbsource//third-party/rust:tracing", - "//eden/fs/cli_rs/edenfs-error:edenfs-error", - ], -) diff --git a/eden/fs/cli_rs/edenfsctl/TARGETS b/eden/fs/cli_rs/edenfsctl/TARGETS deleted file mode 100644 index f1772bb4b4d0d..0000000000000 --- a/eden/fs/cli_rs/edenfsctl/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_client_infra") - -rust_binary( - name = "edenfsctl", - srcs = glob(["src/**/*.rs"]), - os_deps = [ - ( - "windows", - [ - "//eden/fs/cli_rs/edenfs-utils:edenfs-utils", - ], - ), - ], - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap-3", - "fbsource//third-party/rust:fail", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:tracing-subscriber", - "//common/rust/shed/fbinit:fbinit", - "//eden/fs/cli_rs/edenfs-commands:edenfs-commands", - "//eden/fs/cli_rs/facebook/edenfs-telemetry:edenfs-telemetry", - "//eden/scm/lib/util/testutil:testutil", - ], -) diff --git a/eden/fs/cli_rs/facebook/edenfs-telemetry/TARGETS b/eden/fs/cli_rs/facebook/edenfs-telemetry/TARGETS deleted file mode 100644 index a5328478db545..0000000000000 --- a/eden/fs/cli_rs/facebook/edenfs-telemetry/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_client_infra") - -rust_library( - name = "edenfs-telemetry", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:sysinfo", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:whoami", - "//common/rust/build_info:build_info", - "//common/rust/fbwhoami:fbwhoami", - "//devx_www/cross_env_session_id:cross_env_session_id", - "//eden/scm/lib/procinfo:procinfo", - ], -) diff --git a/eden/fs/cli_rs/stack-config-derive/TARGETS b/eden/fs/cli_rs/stack-config-derive/TARGETS deleted file mode 100644 index e95b4f8f2d6e9..0000000000000 --- a/eden/fs/cli_rs/stack-config-derive/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_client_infra") - -rust_library( - name = "stack-config-derive", - srcs = glob(["src/**/*.rs"]), - proc_macro = True, - unittests = False, - deps = [ - "fbsource//third-party/rust:darling", - "fbsource//third-party/rust:proc-macro-error", - "fbsource//third-party/rust:proc-macro2", - "fbsource//third-party/rust:quote", - "fbsource//third-party/rust:syn1", - ], -) diff --git a/eden/fs/cli_rs/stack-config/TARGETS b/eden/fs/cli_rs/stack-config/TARGETS deleted file mode 100644 index 52b6e50124024..0000000000000 --- a/eden/fs/cli_rs/stack-config/TARGETS +++ /dev/null @@ -1,37 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_client_infra") - -rust_library( - name = "stack-config", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "extra_buck_dependencies": { - "dev-dependencies": [ - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:toml", - ], - }, - }, - }, - deps = [ - "fbsource//third-party/rust:serde_derive", - "//eden/fs/cli_rs/stack-config-derive:stack-config-derive", - ], -) - -rust_unittest( - name = "stack-config-test", - srcs = glob(["tests/**/*.rs"]), - autocargo = { - "ignore_rule": True, - }, - crate = "stack_config_test", - deps = [ - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:toml", - ":stack-config", - ], -) diff --git a/eden/fs/config/TARGETS b/eden/fs/config/TARGETS deleted file mode 100644 index fb3dd3985e7eb..0000000000000 --- a/eden/fs/config/TARGETS +++ /dev/null @@ -1,92 +0,0 @@ -load("@fbcode//eden:defs.bzl", "make_rule_compatible_with") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_client_infra") - -cpp_library( - name = "config", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - deps = [ - "//eden/common/utils:bug", - "//eden/common/utils:enum", - "//eden/common/utils:file_utils", - "//eden/common/utils:system_error", - "//eden/common/utils:user_info", - "//eden/fs/utils:filter_utils", - "//folly:map_util", - "//folly:range", - "//folly:string", - "//folly/io:iobuf", - "//thrift/lib/cpp/util:enum_utils", - ], - exported_deps = [ - "fbsource//third-party/cpptoml:cpptoml", - "fbsource//third-party/fmt:fmt", - ":config_thrift-cpp2-types", - "//common/rust/shed/hostcaps:hostcaps_ffi", - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:option_set", - "//eden/common/utils:path", - "//eden/common/utils:throw", - "//eden/common/utils:utils", - "//eden/fs:config", - "//eden/fs/model:model", - "//eden/fs/store:store_type", - "//eden/fs/utils:chrono", - "//folly:expected", - "//folly:file", - "//folly:file_util", - "//folly:portability", - "//folly:synchronized", - "//folly:utility", - "//folly/json:dynamic", - "//folly/logging:logging", - "//folly/portability:sys_types", - "//thrift/lib/cpp/concurrency:thread_manager", - ], - external_deps = [ - ("boost", None, "boost_filesystem"), - ], - exported_external_deps = [ - "re2", - ], -) - -thrift_library( - name = "config_thrift", - languages = [ - "cpp2", - "py3", - "python", - "rust", - "py-deprecated", - ], - py_base_module = "facebook.eden", - thrift_rust_options = ["deprecated_default_enum_min_i32"], - thrift_srcs = { - "eden_config.thrift": [], - }, -) - -# The Java bindings are only used by Buck, and since Buck is in a separate repo, -# they are manually compiled and copied. See the build instructions in -# eden/fs/service/TARGETS. -# -# TODO: Sandcastle macOS is not yet configured to build Java targets, so disable -# this on macOS. -make_rule_compatible_with( - name = "config_thrift_buck", - compatible_with = [ - "ovr_config//os:linux", - ], - languages = [ - "javadeprecated", - ], - rule = thrift_library, - tags = ["noautodeps"], - thrift_srcs = { - "eden_config.thrift": [], - }, -) diff --git a/eden/fs/config/facebook/TARGETS b/eden/fs/config/facebook/TARGETS deleted file mode 100644 index 7611427c354d8..0000000000000 --- a/eden/fs/config/facebook/TARGETS +++ /dev/null @@ -1,67 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -python_library( - name = "edenfs_config_util", - srcs = ["edenfs_config_util.py"], - os_deps = [ - ( - "linux", - [ - "//gatekeeper/py:client", - "//libfb/py:employee", - ":edenfs_qe", - ], - ), - ], -) - -python_library( - name = "edenfs_config_manager_lib", - srcs = ["edenfs_config_manager_lib.py"], - deps = [ - "fbsource//third-party/pypi/distro:distro", - "fbsource//third-party/pypi/pytz:pytz", - "fbsource//third-party/pypi/requests:requests", - "fbsource//third-party/pypi/toml:toml", - "fbsource//xplat/python/interntools:auth", - "fbsource//xplat/python/x2p:x2p", - ":edenfs_config_util", - "//configerator/structs/scm/eden/config:edenfs_config-py3-types", - "//eden/fs/cli:hostname", - "//eden/fs/cli:lib", - "//eden/fs/cli:telemetry", - "//manifold/clients/python:manifold_client_deprecated", - "//thrift/lib/py3:common", - "//thrift/lib/py3:types", - ], -) - -python_library( - name = "edenfs_qe", - srcs = ["edenfs_qe.py"], - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "//configerator/structs/qe2/service:qe2_servicev2-py3-clients", - "//configerator/structs/qe2/service:qe2_servicev2-py3-types", - "//ondemand:paths", - "//servicerouter/client/py3:base", - "//servicerouter/client/py3:get_client", - ], -) - -python_binary( - name = "edenfs_config_manager", - srcs = ["edenfs_config_manager.py"], - main_function = "eden.fs.config.facebook.edenfs_config_manager.main", - deps = [ - ":edenfs_config_manager_lib", - ":edenfs_config_util", - "//eden/fs/cli:lib", - "//eden/fs/cli:telemetry", - ], -) diff --git a/eden/fs/config/facebook/test/TARGETS b/eden/fs/config/facebook/test/TARGETS deleted file mode 100644 index 3e34498fc03ca..0000000000000 --- a/eden/fs/config/facebook/test/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") - -oncall("scm_client_infra") - -python_unittest( - name = "edenfs_config_manager_test", - srcs = ["edenfs_config_manager_test.py"], - deps = [ - "//configerator/structs/scm/eden/config:edenfs_config-py3-types", - "//eden/fs/cli:telemetry", - "//eden/fs/config/facebook:edenfs_config_manager_lib", - ], -) - -python_unittest( - name = "edenfs_config_util_test", - srcs = ["edenfs_config_util_test.py"], - deps = [ - "//eden/fs/config/facebook:edenfs_config_util", - ], -) diff --git a/eden/fs/config/test/TARGETS b/eden/fs/config/test/TARGETS deleted file mode 100644 index ecfae190a4209..0000000000000 --- a/eden/fs/config/test/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - supports_static_listing = False, - deps = [ - "//eden/common/utils:bug", - "//eden/common/utils:file_utils", - "//eden/common/utils:path", - "//eden/fs/config:config", - "//eden/fs/model/git:gitignore", - "//folly:file", - "//folly:file_util", - "//folly:range", - "//folly/portability:gtest", - "//folly/test:test_utils", - "//folly/testing:test_util", - ], - external_deps = [ - ("boost", None, "boost_algorithm"), - ], -) diff --git a/eden/fs/digest/TARGETS b/eden/fs/digest/TARGETS deleted file mode 100644 index 5621dae72ec17..0000000000000 --- a/eden/fs/digest/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "blake3_hash", - srcs = [ - "Blake3.cpp", - ], - headers = [ - "Blake3.h", - ], - exported_deps = [ - "fbsource//third-party/blake3:blake3", - "//folly:range", - ], -) diff --git a/eden/fs/digest/test/TARGETS b/eden/fs/digest/test/TARGETS deleted file mode 100644 index 770f80828ab02..0000000000000 --- a/eden/fs/digest/test/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - supports_static_listing = False, - deps = [ - "//eden/fs/digest:blake3_hash", - "//folly:range", - "//folly:string", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/facebook/TARGETS b/eden/fs/facebook/TARGETS deleted file mode 100644 index 051e7d7ad4099..0000000000000 --- a/eden/fs/facebook/TARGETS +++ /dev/null @@ -1,82 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -cpp_library( - name = "normalized_hostname", - srcs = ["NormalizedHostname.cpp"], - headers = ["NormalizedHostname.h"], - deps = [ - "//eden/common/utils:string", - ], -) - -cpp_binary( - name = "eden-fb303-collector", - srcs = ["EdenFB303Collector.cpp"], - deps = [ - "//common/network:hostname", - "//eden/common/utils:stringconv", - "//fb303/thrift:fb303_core-cpp2-services", - "//folly:file_util", - "//folly:string", - "//folly/init:init", - "//folly/io/async:async_base", - "//folly/io/async:async_socket", - "//folly/io/async:event_base_manager", - "//folly/json:dynamic", - "//folly/logging:logging", - "//folly/portability:windows", - "//thrift/lib/cpp2/async:header_client_channel", - ], -) - -python_library( - name = "edenfs_restarter_lib", - srcs = ["edenfs_restarter_lib.py"], - deps = [ - "//eden/fs/cli:hostname", - "//eden/fs/cli:lib", - "//eden/fs/cli:proc_utils", - "//eden/fs/cli:telemetry", - "//eden/fs/py/eden/thrift:legacy", - "//libfb/py:dateutil", - ], -) - -python_binary( - name = "edenfs_restarter", - srcs = ["edenfs_restarter.py"], - main_function = "eden.fs.facebook.edenfs_restarter.main", - os_deps = [ - ( - "linux", - ["//eden/fs/cli/facebook:telemetry"], - ), - ], - deps = [ - ":edenfs_restarter_lib", - "//eden/fs/cli:lib", - "//eden/fs/cli:telemetry", - "//libfb/py:dateutil", - ], -) - -python_binary( - name = "make-release", - srcs = ["make-release.py"], - main_function = "eden.fs.facebook.make-release.main_2", -) - -python_binary( - name = "fix-windows-eden", - srcs = ["fix-windows-eden.py"], - main_function = "eden.fs.facebook.fix-windows-eden.main_2", - deps = [ - "fbsource//third-party/pypi/colorama:colorama", - "fbsource//third-party/pypi/pip:pip", - ], -) diff --git a/eden/fs/facebook/experimental/TARGETS b/eden/fs/facebook/experimental/TARGETS deleted file mode 100644 index 8df7cde39cee5..0000000000000 --- a/eden/fs/facebook/experimental/TARGETS +++ /dev/null @@ -1,11 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_client_infra") - -rust_binary( - name = "cicd-experiment", - srcs = ["main.rs"], - deps = [ - "//common/rust/build_info:build_info", - ], -) diff --git a/eden/fs/facebook/prefetch_profiles/TARGETS b/eden/fs/facebook/prefetch_profiles/TARGETS deleted file mode 100644 index 995f18cee61e9..0000000000000 --- a/eden/fs/facebook/prefetch_profiles/TARGETS +++ /dev/null @@ -1,122 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -python_library( - name = "prefetch_profile_util", - srcs = [ - "prefetch_profile_util.py", - ], - deps = [ - "fbsource//third-party/pypi/toml:toml", - ], -) - -python_binary( - name = "generate_fbandroid_specs", - srcs = ["generate_fbandroid_specs.py"], - compatible_with = [ - "ovr_config//os:linux", - ], - main_function = "eden.fs.facebook.prefetch_profiles.generate_fbandroid_specs.main", - deps = [ - ":prefetch_profile_util", - "//libfb/py:employee", - "//libfb/py/thrift_clients:oncall_thrift_client", - "//rfe/py/lib:sql", - ], -) - -python_library( - name = "glob_filenames_main", - srcs = [ - "glob_filenames.py", - ], - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - ":prefetch_profile_util", # @manual - "//eden/fs/cli:telemetry", - "//eden/fs/cli/facebook:telemetry", - "//eden/mononoke/scs/if:source_control-py3-clients", - "//eden/mononoke/scs/if:source_control-py3-types", - "//servicerouter/client/py3:base", - "//servicerouter/client/py3:get_client", - ], -) - -python_binary( - name = "glob_filenames", - compatible_with = [ - "ovr_config//os:linux", - ], - main_function = "eden.fs.facebook.prefetch_profiles.glob_filenames.main", - deps = [ - ":glob_filenames_main", - ], -) - -python_library( - name = "prefetch_profile_lib", - srcs = [ - "record_prefetch_profile_lib.py", - ], - deps = [ - "fbsource//third-party/pypi/toml:toml", - ":prefetch_profile_util", - ], -) - -python_binary( - name = "prefetch_profile", - srcs = ["record_prefetch_profile.py"], - main_function = "eden.fs.facebook.prefetch_profiles.record_prefetch_profile.main", - deps = [ - ":prefetch_profile_lib", - ], -) - -python_binary( - name = "prefetch_profile_sandcastle_gen", - srcs = ["generate_sandcastle_jobs.py"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:windows", - ], - main_function = "eden.fs.facebook.prefetch_profiles.generate_sandcastle_jobs.main", - deps = [ - ":generate_sandcastle_jobs_lib", - ], -) - -python_library( - name = "generate_sandcastle_jobs_lib", - srcs = [ - "generate_sandcastle_jobs_lib.py", - ], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:windows", - ], - deps = [ - ":glob_filenames_main", - ":prefetch_profile_util", - "//configerator/distribution/api/py:configerator_config", - "//configerator/structs/scm/eden:prefetch_profiles_gen_config-py3-types", - ], -) - -python_binary( - name = "profile_name_configerator_sync", - srcs = ["profile_name_configerator_sync.py"], - compatible_with = [ - "ovr_config//os:linux", - ], - main_function = "eden.fs.facebook.prefetch_profiles.profile_name_configerator_sync.main", - deps = [ - ":prefetch_profile_util", - "//configerator/configo/client/thrift_py3:client", - ], -) diff --git a/eden/fs/facebook/prefetch_profiles/test/TARGETS b/eden/fs/facebook/prefetch_profiles/test/TARGETS deleted file mode 100644 index 4af54df39d382..0000000000000 --- a/eden/fs/facebook/prefetch_profiles/test/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") - -oncall("scm_client_infra") - -python_unittest( - name = "glob_filenames_test", - srcs = ["glob_filenames_test.py"], - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "//eden/fs/cli:telemetry", - "//eden/fs/facebook/prefetch_profiles:glob_filenames_main", - ], -) - -python_unittest( - name = "spec_formatting_test", - srcs = ["spec_formatting_test.py"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - "ovr_config//os:windows", - ], - env = { - "SPECS": "$(location fbsource//xplat/scm/prefetch_profiles:specs)", - }, - deps = [ - "fbsource//third-party/pypi/toml:toml", - "fbsource//xplat/python/utilities:utilities", - ], -) diff --git a/eden/fs/facebook/prototypes/crawler/TARGETS b/eden/fs/facebook/prototypes/crawler/TARGETS deleted file mode 100644 index b5461a928d8a0..0000000000000 --- a/eden/fs/facebook/prototypes/crawler/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_client_infra") - -rust_binary( - name = "crawler", - srcs = glob(["src/**/*.rs"]), - named_deps = { - "edenfs": "//eden/fs/service:thrift-rust", - }, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap-3", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:log", - "fbsource//third-party/rust:tokio", - "//buck2/app/buck2_core:buck2_core", - "//buck2/app/buck2_eden:buck2_eden", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/fs/cli_rs/edenfs-utils:edenfs-utils", - "//remote_execution/client_lib/wrappers/rust:re_client_lib", - ], -) diff --git a/eden/fs/facebook/test/TARGETS b/eden/fs/facebook/test/TARGETS deleted file mode 100644 index 4df13da89caaf..0000000000000 --- a/eden/fs/facebook/test/TARGETS +++ /dev/null @@ -1,36 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "normalized_hostname", - srcs = ["NormalizedHostnameTest.cpp"], - env = { - "TEST_DATA": "$(location //eden/facebook/test-data:normalized-hostname)", - }, - supports_static_listing = False, - deps = [ - "//eden/common/utils:file_utils", - "//eden/common/utils:path", - "//eden/common/utils:string", - "//eden/common/utils:try", - "//eden/fs/facebook:normalized_hostname", - "//folly:file", - "//folly/portability:gtest", - ], -) - -python_unittest( - name = "restarter_tests", - srcs = ["restarter_tests.py"], - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "//eden/fs/cli:telemetry", - "//eden/fs/cli/test/lib:lib", - "//eden/fs/facebook:edenfs_restarter_lib", - "//libfb/py:dateutil", - ], -) diff --git a/eden/fs/fuse/TARGETS b/eden/fs/fuse/TARGETS deleted file mode 100644 index 8e8031498a1f0..0000000000000 --- a/eden/fs/fuse/TARGETS +++ /dev/null @@ -1,53 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "fuse", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:bug", - "//eden/common/utils:synchronized", - "//eden/common/utils:system_error", - "//eden/fs/notifications:notifier", - "//eden/fs/privhelper:interface", - "//eden/fs/telemetry:fs_event_logger", - "//eden/fs/telemetry:log_info", - "//eden/fs/utils:static_assert", - "//eden/fs/utils:thread", - "//folly:exception", - "//folly/executors:global_executor", - "//folly/logging:logging", - "//folly/system:thread_name", - ], - exported_deps = [ - "//eden/common/os:os", - "//eden/common/telemetry:telemetry", - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/common/utils:ref_ptr", - "//eden/common/utils:utils", - "//eden/fs/inodes:fs_channel", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes:request_context", - "//eden/fs/store:context", - "//eden/fs/store:store", - "//eden/fs/telemetry:stats", - "//eden/fs/utils:bufvec", - "//eden/fs/utils:fs_channel_types", - "//eden/fs/utils:process_access_log", - "//folly:file", - "//folly:portability", - "//folly:range", - "//folly:synchronized", - "//folly/futures:core", - "//folly/synchronization:call_once", - ], - external_deps = [ - "boost", - ], -) diff --git a/eden/fs/fuse/fuse_tester/TARGETS b/eden/fs/fuse/fuse_tester/TARGETS deleted file mode 100644 index 326f538115aed..0000000000000 --- a/eden/fs/fuse/fuse_tester/TARGETS +++ /dev/null @@ -1,35 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") - -oncall("scm_client_infra") - -cpp_binary( - name = "fuse_tester", - srcs = ["main.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:enum", - "//eden/common/utils:path", - "//eden/common/utils:process_info_cache", - "//eden/common/utils:user_info", - "//eden/fs/fuse:fuse", - "//eden/fs/privhelper:interface", - "//eden/fs/privhelper:privhelper", - "//eden/fs/store:store", - "//eden/fs/telemetry:stats", - "//folly:exception", - "//folly/init:init", - "//folly/io/async:async_base", - "//folly/io/async:event_base_thread", - "//folly/logging:init", - "//folly/logging:logging", - "//folly/portability:gflags", - ], - external_deps = [ - ("boost", None, "boost_filesystem"), - ], -) diff --git a/eden/fs/fuse/test/TARGETS b/eden/fs/fuse/test/TARGETS deleted file mode 100644 index 9e2ed5ae5f597..0000000000000 --- a/eden/fs/fuse/test/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:enum", - "//eden/common/utils:process_info_cache", - "//eden/fs/fuse:fuse", - "//eden/fs/telemetry:stats", - "//eden/fs/testharness:fake_fuse", - "//eden/fs/testharness:test_dispatcher", - "//folly:random", - "//folly/executors:global_executor", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) diff --git a/eden/fs/fuzz/facebook/TARGETS b/eden/fs/fuzz/facebook/TARGETS deleted file mode 100644 index 277cad2ba485d..0000000000000 --- a/eden/fs/fuzz/facebook/TARGETS +++ /dev/null @@ -1,73 +0,0 @@ -load("@fbcode//security/lionhead/harnesses:defs.bzl", "cpp_lionhead_harness") -load("@fbsource//xplat/security/lionhead:defs.bzl", "Metadata", "SUBSET_OF_EMPLOYEES", "Severity") - -oncall("scm_client_infra") - -edenfs_metadata = Metadata( - exposure = SUBSET_OF_EMPLOYEES, - project = "edenfs", - severity_denial_of_service = Severity.FILE_SECURITY_TASK, - severity_service_takeover = Severity.FILE_SECURITY_TASK, -) - -cpp_lionhead_harness( - name = "CpptomlFuzz", - srcs = ["CpptomlFuzz.cpp"], - compatible_with = [ - "ovr_config//os:linux", - ], - context_task = "T139646881", - ftest_name = ("Cpptoml", "parse"), - metadata = edenfs_metadata, - deps = [ - "fbsource//third-party/cpptoml:cpptoml", - "fbsource//xplat/security/lionhead/utils/lib_ftest:lib", - ], -) - -cpp_lionhead_harness( - name = "GitTree", - srcs = ["GitTreeFuzz.cpp"], - compatible_with = [ - "ovr_config//os:linux", - ], - context_task = "T139646881", - ftest_name = ("GitTree", "deserialize"), - metadata = edenfs_metadata, - deps = [ - "fbsource//xplat/security/lionhead/utils/lib_ftest:lib", - "//eden/fs/model:model", - "//eden/fs/model/git:git", - ], -) - -cpp_lionhead_harness( - name = "GlobMatcher", - srcs = ["GlobMatcherFuzz.cpp"], - compatible_with = [ - "ovr_config//os:linux", - ], - context_task = "T139646881", - ftest_name = ("GlobMatcher", "parse_and_match"), - metadata = edenfs_metadata, - deps = [ - "fbsource//xplat/security/lionhead/utils/lib_ftest:lib", - "//eden/fs/utils:matcher", - "//folly:string", - ], -) - -cpp_lionhead_harness( - name = "SerializedBlobMetadata", - srcs = ["SerializedBlobMetadataFuzz.cpp"], - compatible_with = [ - "ovr_config//os:linux", - ], - context_task = "T139646881", - ftest_name = ("SerializedBlobMetadata", "parse"), - metadata = edenfs_metadata, - deps = [ - "fbsource//xplat/security/lionhead/utils/lib_ftest:lib", - "//eden/fs/store:store", - ], -) diff --git a/eden/fs/inodes/TARGETS b/eden/fs/inodes/TARGETS deleted file mode 100644 index 083eabb8409d3..0000000000000 --- a/eden/fs/inodes/TARGETS +++ /dev/null @@ -1,293 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "fs_channel", - headers = ["FsChannel.h"], - exported_deps = [ - "//eden/common/utils:immediate_future", - "//eden/fs/utils:fs_channel_types", - ], -) - -cpp_library( - name = "inode_number", - srcs = ["InodeNumber.cpp"], - headers = ["InodeNumber.h"], - deps = [ - "//folly:conv", - ], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - "//folly/logging:logging", - ], -) - -cpp_library( - name = "request_context", - srcs = ["RequestContext.cpp"], - headers = ["RequestContext.h"], - deps = [ - "//eden/common/utils:system_error", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/telemetry:telemetry", - "//eden/fs/store:context", - "//eden/fs/telemetry:stats", - "//eden/fs/utils:process_access_log", - "//folly/futures:core", - ], -) - -cpp_library( - name = "inode_catalog", - headers = ["InodeCatalog.h"], - exported_deps = [ - ":inode_number", - "//eden/common/utils:bug", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/fs/inodes/overlay:overlay_checker_util", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/model:model", - ], -) - -cpp_library( - name = "file_content_store", - headers = ["FileContentStore.h"], - exported_deps = [ - ":inode_number", - "//eden/common/utils:path", - "//folly:range", - ], -) - -cpp_library( - name = "inodes", - srcs = [ - "CheckoutAction.cpp", - "CheckoutContext.cpp", - "DeferredDiffEntry.cpp", - "DirEntry.cpp", - "EdenDispatcherFactory.cpp", - "EdenMount.cpp", - "EdenMountHandle.cpp", - "FileAccessLogger.cpp", - "FileInode.cpp", - "FuseDispatcherImpl.cpp", - "GlobNode.cpp", - "InodeBase.cpp", - "InodeError.cpp", - "InodeMap.cpp", - "InodePtr.cpp", - "NfsDispatcherImpl.cpp", - "Overlay.cpp", - "OverlayFile.cpp", - "OverlayFileAccess.cpp", - "PathError.cpp", - "PrjfsDispatcherImpl.cpp", - "ServerState.cpp", - "Traverse.cpp", - "TreeInode.cpp", - "TreePrefetchLease.cpp", - "VirtualInode.cpp", - ], - headers = [ - "CacheHint.h", - "CheckoutAction.h", - "CheckoutContext.h", - "DeferredDiffEntry.h", - "DirEntry.h", - "EdenDispatcherFactory.h", - "EdenMount.h", - "EdenMountError.h", - "EdenMountHandle.h", - "FileAccessLogger.h", - "FileInode.h", - "FuseDispatcherImpl.h", - "GlobNode.h", - "InodeBase.h", - "InodeError.h", - "InodeMap.h", - "InodePtr.h", - "InodePtr-defs.h", - "InodePtrFwd.h", - "InodeTable.h", - "NfsDispatcherImpl.h", - "Overlay.h", - "OverlayFile.h", - "OverlayFileAccess.h", - "ParentInodeInfo.h", - "PathError.h", - "PrjfsDispatcherImpl.h", - "ServerState.h", - "Traverse.h", - "TreeInode.h", - "TreePrefetchLease.h", - "UnmaterializedUnloadedBlobDirEntry.h", - "VirtualInode.h", - "VirtualInodeLoader.h", - ], - os_deps = [ - ( - "linux", - [ - "//eden/fs/inodes/lmdbcatalog:buffered_lmdb_inode_catalog", - "//eden/fs/inodes/lmdbcatalog:lmdb_inode_catalog", - "//eden/fs/inodes/lmdbcatalog:lmdb_file_content_store", - ], - ), - ( - "macos", - [ - "//eden/fs/inodes/lmdbcatalog:buffered_lmdb_inode_catalog", - "//eden/fs/inodes/lmdbcatalog:lmdb_inode_catalog", - "//eden/fs/inodes/lmdbcatalog:lmdb_file_content_store", - ], - ), - ], - deps = [ - "fbsource//third-party/cpptoml:cpptoml", - "fbsource//third-party/fmt:fmt", - ":file_content_store", - "//eden/common/telemetry:log_info", - "//eden/common/telemetry:structured_logger_factory", - "//eden/common/utils:enum", - "//eden/common/utils:fault_injector", - "//eden/common/utils:match", - "//eden/common/utils:process", - "//eden/common/utils:synchronized", - "//eden/common/utils:system_error", - "//eden/fs/digest:blake3_hash", - "//eden/fs/inodes/memcatalog:meminodecatalog", - "//eden/fs/inodes/sqlitecatalog:bufferedsqliteinodecatalog", - "//eden/fs/inodes/sqlitecatalog:sqliteinodecatalog", - "//eden/fs/nfs:dirlist", - "//eden/fs/nfs:nfs_server", - "//eden/fs/nfs:nfs_utils", - "//eden/fs/nfs:nfsd3", - "//eden/fs/nfs:nfsd_rpc", - "//eden/fs/privhelper:interface", - "//eden/fs/service:pretty_printers", - "//eden/fs/service:thrift_util", - "//eden/fs/sqlite:sqlite", - "//eden/fs/store:backing_store_interface", - "//eden/fs/telemetry:file_access_structured_logger", - "//eden/fs/telemetry:fs_event_logger", - "//eden/fs/telemetry:log_info", - "//eden/fs/telemetry:task_trace", - "//eden/fs/utils:clock", - "//eden/fs/utils:eden_error", - "//eden/fs/utils:file_hash", - "//eden/fs/utils:fs_channel_types", - "//eden/fs/utils:nfs_socket", - "//folly:exception", - "//folly:fbstring", - "//folly:file_util", - "//folly:likely", - "//folly:random", - "//folly:string", - "//folly:unit", - "//folly/chrono:conv", - "//folly/io:iobuf", - "//folly/io/async:async_base", - "//folly/portability:openssl", - "//folly/system:pid", - "//folly/system:thread_name", - "//thrift/lib/cpp2/protocol:protocol", - ], - exported_deps = [ - ":fs_channel", - ":inode_metadata", - ":inode_number", - "//eden/common/telemetry:structured_logger", - "//eden/common/telemetry:telemetry", - "//eden/common/utils:bug", - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:file_utils", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/common/utils:ref_ptr", - "//eden/common/utils:string", - "//eden/common/utils:user_info", - "//eden/common/utils:utils", - "//eden/fs/config:config", - "//eden/fs/config:config_thrift-cpp2-types", - "//eden/fs/fuse:fuse", - "//eden/fs/inodes/fscatalog:fsinodecatalog", - "//eden/fs/inodes/overlay:overlay_checker", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/journal:journal", - "//eden/fs/model:model", - "//eden/fs/model:model-fwd", - "//eden/fs/model/git:gitignore", - "//eden/fs/nfs:dispatcher", - "//eden/fs/prjfs:prjfs", - "//eden/fs/service:thrift-cpp2-types", - "//eden/fs/store:context", - "//eden/fs/store:store", - "//eden/fs/takeover:serialization-cpp2-types", - "//eden/fs/takeover:takeover", - "//eden/fs/telemetry:activity_buffer", - "//eden/fs/telemetry:activity_recorder", - "//eden/fs/telemetry:stats", - "//eden/fs/utils:bufvec", - "//eden/fs/utils:glob", - "//eden/fs/utils:static_assert", - "//folly:cancellation_token", - "//folly:exception_wrapper", - "//folly:expected", - "//folly:fbvector", - "//folly:file", - "//folly:map_util", - "//folly:portability", - "//folly:range", - "//folly:shared_mutex", - "//folly:stop_watch", - "//folly:synchronized", - "//folly:thread_local", - "//folly/container:evicting_cache_map", - "//folly/functional:invoke", - "//folly/futures:core", - "//folly/futures:shared_promise", - "//folly/logging:logging", - "//folly/portability:gflags", - "//folly/portability:sys_uio", - "//folly/synchronization:baton", - "//folly/synchronization:lifo_sem", - ], - external_deps = [ - "boost", - "re2", - ("boost", None, "boost_filesystem"), - ], -) - -cpp_library( - name = "inode_metadata", - srcs = [ - "InodeMetadata.cpp", - "InodeTimestamps.cpp", - ], - headers = [ - "InodeMetadata.h", - "InodeTimestamps.h", - ], - deps = [ - "//eden/common/utils:throw", - "//eden/fs/utils:clock", - "//eden/fs/utils:fs_channel_types", - "//folly:conv", - ], - exported_deps = [ - "//eden/common/utils:utils", - "//folly/portability:sys_stat", - "//folly/portability:sys_types", - ], - exported_external_deps = [ - ("glibc", None, "rt"), - ], -) diff --git a/eden/fs/inodes/fscatalog/TARGETS b/eden/fs/inodes/fscatalog/TARGETS deleted file mode 100644 index 5e7d7d02d6015..0000000000000 --- a/eden/fs/inodes/fscatalog/TARGETS +++ /dev/null @@ -1,62 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "fsinodecatalog", - srcs = - [ - "FsInodeCatalog.cpp", - "InodePath.cpp", - ], - headers = - [ - "FsInodeCatalog.h", - "InodePath.h", - ], - deps = [ - "//eden/common/utils:file_utils", - "//eden/common/utils:throw", - "//eden/fs/service:thrift-cpp2-types", - "//eden/fs/utils:eden_error", - "//folly:exception", - "//folly:file_util", - "//folly/io:iobuf", - "//folly/lang:to_ascii", - "//folly/logging:logging", - "//thrift/lib/cpp2/protocol:protocol", - ], - exported_deps = [ - "fbsource//third-party/googletest:gtest_headers", - "//eden/common/utils:path", - "//eden/common/utils:utils", - "//eden/fs/inodes:file_content_store", - "//eden/fs/inodes:inode_catalog", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//folly:file", - "//folly:range", - ], - external_deps = [ - ("boost", None, "boost_filesystem"), - ], -) - -cpp_binary( - name = "eden_fsck", - srcs = ["eden_fsck.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - ":fsinodecatalog", - "//eden/fs/inodes/overlay:overlay_checker", - "//folly:exception", - "//folly/init:init", - "//folly/logging:init", - "//folly/logging:logging", - "//folly/portability:gflags", - ], -) diff --git a/eden/fs/inodes/fscatalog/test/TARGETS b/eden/fs/inodes/fscatalog/test/TARGETS deleted file mode 100644 index f66c270378f75..0000000000000 --- a/eden/fs/inodes/fscatalog/test/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - supports_static_listing = False, - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/testharness:temp_file", - "//eden/common/utils:file_utils", - "//eden/fs/inodes/fscatalog:fsinodecatalog", - "//eden/fs/inodes/overlay:overlay_checker", - "//eden/fs/inodes/sqlitecatalog:sqliteinodecatalog", - "//eden/fs/model:model", - "//eden/fs/testharness:test_util", - "//folly:conv", - "//folly:file_util", - "//folly:range", - "//folly/logging:logging", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/inodes/lmdbcatalog/TARGETS b/eden/fs/inodes/lmdbcatalog/TARGETS deleted file mode 100644 index fb0a5ffe1327a..0000000000000 --- a/eden/fs/inodes/lmdbcatalog/TARGETS +++ /dev/null @@ -1,115 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "lmdb_file_content_store", - srcs = [ - "LMDBFileContentStore.cpp", - ], - headers = [ - "LMDBFileContentStore.cpp", - ], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - exported_deps = [ - ":lmdbstoreif", - "//eden/common/utils:file_utils", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/fs/inodes:file_content_store", - "//eden/fs/inodes:inode_catalog", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes/overlay:overlay_checker", - "//eden/fs/model:model", - "//folly:file", - "//folly:file_util", - "//folly:range", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "lmdb_inode_catalog", - srcs = [ - "LMDBInodeCatalog.cpp", - ], - headers = [ - "LMDBInodeCatalog.h", - ], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - ":lmdb_file_content_store", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/utils:eden_error", - "//folly/io:iobuf", - "//thrift/lib/cpp2/protocol:protocol", - ], - exported_deps = [ - ":lmdbstoreif", - "//eden/common/utils:file_utils", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/fs/inodes:file_content_store", - "//eden/fs/inodes:inode_catalog", - "//eden/fs/inodes/overlay:overlay_checker", - "//eden/fs/model:model", - "//folly:file", - "//folly:range", - ], -) - -cpp_library( - name = "buffered_lmdb_inode_catalog", - srcs = ["BufferedLMDBInodeCatalog.cpp"], - headers = ["BufferedLMDBInodeCatalog.h"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - ":lmdb_file_content_store", - "//eden/fs/config:config", - "//eden/fs/inodes:inode_number", - "//folly/futures:core", - "//folly/logging:logging", - "//folly/system:thread_name", - "//thrift/lib/cpp2/protocol:protocol", - ], - exported_deps = [ - "fbsource//third-party/googletest:gtest_headers", - ":lmdb_inode_catalog", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//folly:function", - "//folly:synchronized", - "//folly/synchronization:lifo_sem", - ], -) - -cpp_library( - name = "lmdbstoreif", - srcs = ["LMDBStoreInterface.cpp"], - headers = ["LMDBStoreInterface.h"], - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:utils", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//folly:range", - "//thrift/lib/cpp2/protocol:protocol", - ], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - "fbsource//third-party/googletest:gtest_headers", - "//eden/common/utils:file_utils", - "//eden/common/utils:path", - "//eden/fs/lmdb:lmdb", - "//folly/portability:sys_uio", - ], -) diff --git a/eden/fs/inodes/lmdbcatalog/test/TARGETS b/eden/fs/inodes/lmdbcatalog/test/TARGETS deleted file mode 100644 index f0d1dcf8071d4..0000000000000 --- a/eden/fs/inodes/lmdbcatalog/test/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "lmdb_store_if", - srcs = ["LMDBStoreInterfaceTest.cpp"], - deps = [ - "//eden/common/testharness:temp_file", - "//eden/common/utils:path", - "//eden/common/utils:utils", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes/lmdbcatalog:lmdbstoreif", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/lmdb:lmdb", - "//eden/fs/model:model", - "//folly/portability:gtest", - "//thrift/lib/cpp2/protocol:protocol", - ], -) - -cpp_unittest( - name = "lmdb_overlay", - srcs = ["LMDBOverlayTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/testharness:temp_file", - "//eden/fs/config:config", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes:inodes", - "//eden/fs/inodes/lmdbcatalog:buffered_lmdb_inode_catalog", - "//eden/fs/inodes/lmdbcatalog:lmdb_inode_catalog", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/inodes/test:overlay_test_util", - "//eden/fs/telemetry:stats", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) diff --git a/eden/fs/inodes/memcatalog/TARGETS b/eden/fs/inodes/memcatalog/TARGETS deleted file mode 100644 index 835895bedf9e2..0000000000000 --- a/eden/fs/inodes/memcatalog/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "meminodecatalog", - srcs = - [ - "MemInodeCatalog.cpp", - ], - headers = - [ - "MemInodeCatalog.h", - ], - deps = [ - "//eden/fs/inodes/sqlitecatalog:sqliteinodecatalog", - ], - exported_deps = [ - "//eden/fs/inodes:inode_catalog", - "//eden/fs/inodes:inode_number", - "//folly/container:f14_hash", - ], -) diff --git a/eden/fs/inodes/overlay/TARGETS b/eden/fs/inodes/overlay/TARGETS deleted file mode 100644 index 8566e0db30f2e..0000000000000 --- a/eden/fs/inodes/overlay/TARGETS +++ /dev/null @@ -1,65 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_client_infra") - -thrift_library( - name = "serialization", - languages = [ - "cpp2", - "rust", - "py-deprecated", - ], - py_base_module = "facebook.eden", - thrift_srcs = { - "overlay.thrift": [], - }, -) - -cpp_library( - name = "overlay_checker_util", - headers = ["OverlayCheckerUtil.h"], - exported_deps = [ - ":serialization-cpp2-types", - "//eden/fs/inodes:inode_number", - "//folly:cpp_attributes", - "//folly:small_vector", - ], -) - -cpp_library( - name = "overlay_checker", - srcs = [ - "OverlayChecker.cpp", - ], - headers = [ - "OverlayChecker.h", - ], - deps = [ - "//eden/common/utils:enum", - "//eden/fs/inodes/fscatalog:fsinodecatalog", - "//folly:conv", - "//folly:exception_wrapper", - "//folly:file", - "//folly:file_util", - "//folly:overload", - "//folly:string", - "//folly/gen:base", - "//folly/gen:parallel_map", - "//folly/logging:logging", - "//folly/portability:unistd", - "//thrift/lib/cpp2/protocol:protocol", - ], - exported_deps = [ - ":overlay_checker_util", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/fs/inodes:inode_catalog", - "//eden/fs/inodes:inode_number", - "//eden/fs/model:model", - "//folly:cpp_attributes", - ], - external_deps = [ - ("boost", None, "boost_filesystem"), - ], -) diff --git a/eden/fs/inodes/sqlitecatalog/TARGETS b/eden/fs/inodes/sqlitecatalog/TARGETS deleted file mode 100644 index a378e894044b7..0000000000000 --- a/eden/fs/inodes/sqlitecatalog/TARGETS +++ /dev/null @@ -1,104 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "sqlitetreestore", - srcs = ["SqliteTreeStore.cpp"], - headers = ["SqliteTreeStore.h"], - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:utils", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/telemetry:log_info", - "//folly:range", - "//folly:stop_watch", - ], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - "fbsource//third-party/googletest:gtest_headers", - "//eden/common/utils:path", - "//eden/fs/sqlite:sqlite", - ], -) - -cpp_library( - name = "sqliteinodecatalog", - srcs = [ - "SqliteInodeCatalog.cpp", - "WindowsFsck.cpp", - ], - headers = [ - "SqliteInodeCatalog.h", - "WindowsFsck.h", - ], - deps = [ - "//eden/common/utils:bug", - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:file_utils", - "//eden/common/utils:utils", - "//eden/common/utils:win_error", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/prjfs:disk_state", - "//eden/fs/utils:projfs_util", - "//folly:file", - "//folly/executors:serial_executor", - "//folly/portability:windows", - ], - exported_deps = [ - ":sqlitetreestore", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/fs/config:config", - "//eden/fs/inodes:inode_catalog", - "//eden/fs/inodes/overlay:overlay_checker", - "//eden/fs/model:model", - "//folly:range", - ], -) - -cpp_library( - name = "bufferedsqliteinodecatalog", - srcs = [ - "BufferedSqliteInodeCatalog.cpp", - ], - headers = [ - "BufferedSqliteInodeCatalog.h", - ], - deps = [ - "//eden/fs/config:config", - "//eden/fs/inodes:inode_number", - "//folly/futures:core", - "//folly/logging:logging", - "//folly/system:thread_name", - "//thrift/lib/cpp2/protocol:protocol", - ], - exported_deps = [ - "fbsource//third-party/googletest:gtest_headers", - ":sqliteinodecatalog", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//folly:function", - "//folly:synchronized", - "//folly/synchronization:lifo_sem", - ], -) - -cpp_binary( - name = "windows_overlay_scanner", - srcs = ["WindowsOverlayScanner.cpp"], - deps = [ - ":sqliteinodecatalog", - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:path", - "//eden/fs/config:config", - "//eden/fs/inodes/overlay:overlay_checker", - "//eden/fs/utils:win_stacktrace", - "//folly/init:init", - "//folly/logging:init", - "//folly/logging:logging", - "//folly/portability:gflags", - ], -) diff --git a/eden/fs/inodes/sqlitecatalog/test/TARGETS b/eden/fs/inodes/sqlitecatalog/test/TARGETS deleted file mode 100644 index 7ac5f62ded1cd..0000000000000 --- a/eden/fs/inodes/sqlitecatalog/test/TARGETS +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "sqlite_inode_catalog", - srcs = ["SqliteInodeCatalogTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/testharness:temp_file", - "//eden/fs/config:config", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes:inodes", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/inodes/sqlitecatalog:bufferedsqliteinodecatalog", - "//eden/fs/inodes/sqlitecatalog:sqliteinodecatalog", - "//eden/fs/inodes/test:overlay_test_util", - "//eden/fs/telemetry:stats", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "sqlite_tree_store", - srcs = ["SqliteTreeStoreTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/utils:path", - "//eden/common/utils:utils", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/inodes/sqlitecatalog:sqlitetreestore", - "//eden/fs/model:model", - "//eden/fs/sqlite:sqlite", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/inodes/test/TARGETS b/eden/fs/inodes/test/TARGETS deleted file mode 100644 index 807039dac6039..0000000000000 --- a/eden/fs/inodes/test/TARGETS +++ /dev/null @@ -1,539 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark") -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "checkout", - srcs = ["CheckoutTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/utils:fault_injector", - "//eden/common/utils:file_utils", - "//eden/common/utils:utils", - "//eden/fs/config:config", - "//eden/fs/inodes:inodes", - "//eden/fs/prjfs:prjfs", - "//eden/fs/service:pretty_printers", - "//eden/fs/service:thrift-cpp2-types", - "//eden/fs/store:store", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:inode_unloader", - "//eden/fs/testharness:test_checks", - "//eden/fs/testharness:test_mount", - "//eden/fs/testharness:test_util", - "//eden/fs/utils:eden_error", - "//folly:conv", - "//folly/chrono:conv", - "//folly/container:array", - "//folly/executors:manual_executor", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "dematerialize", - srcs = ["DematerializeTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/model:testutil", - "//eden/fs/service:pretty_printers", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//folly/executors:manual_executor", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "diff", - srcs = ["DiffTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/config:config", - "//eden/fs/inodes:inodes", - "//eden/fs/model/git:gitignore", - "//eden/fs/store:store", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:stored_object", - "//eden/fs/testharness:test_checks", - "//eden/fs/testharness:test_mount", - "//eden/fs/testharness:test_util", - "//folly:exception_wrapper", - "//folly/logging:logging", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "eden_dispatcher", - srcs = ["EdenDispatcherTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/fuse:fuse", - "//eden/fs/model:model", - "//eden/fs/store:context", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:stored_object", - "//eden/fs/testharness:test_mount", - "//folly/portability:gtest", - "//folly/test:test_utils", - "//folly/testing:test_util", - ], -) - -cpp_unittest( - name = "eden_mount", - srcs = ["EdenMountTest.cpp"], - # TODO: This doesn't pass on macOS yet, remove once fixed. - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:windows", - ], - supports_static_listing = False, - deps = [ - "//eden/fs/config:config", - "//eden/fs/fuse:fuse", - "//eden/fs/inodes:inodes", - "//eden/fs/journal:journal", - "//eden/fs/model:testutil", - "//eden/fs/store:store", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:fake_fuse", - "//eden/fs/testharness:fake_privhelper", - "//eden/fs/testharness:test_checks", - "//eden/fs/testharness:test_mount", - "//eden/fs/testharness:test_util", - "//folly:file", - "//folly:range", - "//folly:scope_guard", - "//folly/chrono:conv", - "//folly/executors:manual_executor", - "//folly/futures:core", - "//folly/futures:future_splitter", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "file_inode", - srcs = ["FileInodeTest.cpp"], - supports_static_listing = False, - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/utils:utils", - "//eden/fs/inodes:inodes", - "//eden/fs/store:store", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_checks", - "//eden/fs/testharness:test_mount", - "//eden/fs/testharness:test_util", - "//folly:range", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "fuse", - srcs = ["FuseTest.cpp"], - # TODO: This doesn't pass on macOS yet, remove once fixed. - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "//eden/common/utils:utils", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:fake_fuse", - "//eden/fs/testharness:test_mount", - "//folly/executors:manual_executor", - "//folly/io/async:async_base", - "//folly/io/async:scoped_event_base_thread", - "//folly/logging:logging", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "glob_node", - srcs = ["GlobNodeTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/model:testutil", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_checks", - "//eden/fs/testharness:test_mount", - "//eden/fs/utils:glob", - "//folly:conv", - "//folly:exception", - "//folly:range", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/test:test_utils", - "//folly/testing:test_util", - ], -) - -cpp_unittest( - name = "inode_base", - srcs = ["InodeBaseTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/store:context", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "virtual_inode_loader", - srcs = ["VirtualInodeLoaderTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_checks", - "//eden/fs/testharness:test_mount", - "//folly/portability:gtest", - "//folly/test:test_utils", - "//folly/testing:test_util", - ], -) - -cpp_unittest( - name = "inode_map", - srcs = ["InodeMapTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/utils:bug", - "//eden/fs/inodes:inodes", - "//eden/fs/store:context", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//eden/fs/testharness:test_util", - "//folly:string", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "inode_ptr", - srcs = ["InodePtrTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "inode_table", - srcs = ["InodeTableTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/telemetry:stats", - "//folly/chrono:conv", - "//folly/portability:gtest", - "//folly/test:test_utils", - "//folly/testing:test_util", - ], -) - -cpp_unittest( - name = "inode_timestamps", - srcs = ["InodeTimestampsTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inode_metadata", - "//folly:portability", - "//folly:utility", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "inode_metadata", - srcs = ["InodeMetadataTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inode_metadata", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "journal_update", - srcs = ["JournalUpdateTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/journal:journal", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//folly/portability:gtest", - ], -) - -cpp_library( - name = "overlay_test_util", - srcs = ["OverlayTestUtil.cpp"], - headers = ["OverlayTestUtil.h"], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes:inodes", - ], -) - -cpp_unittest( - name = "overlay", - srcs = ["OverlayTest.cpp"], - env = { - "RESOURCE_OVERLAY_V2": "$(location //eden/test-data:overlay-v2)/overlay-v2.tgz", - }, - supports_static_listing = False, - deps = [ - ":overlay_test_util", - "//eden/common/telemetry:structured_logger", - "//eden/common/testharness:temp_file", - "//eden/common/utils:process", - "//eden/fs/inodes:inodes", - "//eden/fs/inodes/fscatalog:fsinodecatalog", - "//eden/fs/model:testutil", - "//eden/fs/service:pretty_printers", - "//eden/fs/telemetry:stats", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_checks", - "//eden/fs/testharness:test_mount", - "//eden/fs/testharness:test_util", - "//folly:exception", - "//folly:expected", - "//folly:file_util", - "//folly:range", - "//folly/executors:cpu_thread_pool_executor", - "//folly/logging/test:test_handler", - "//folly/portability:gtest", - "//folly/synchronization/test:barrier", - "//folly/test:test_utils", - "//folly/testing:test_util", - ], -) - -cpp_unittest( - name = "overlay_file", - srcs = ["OverlayFileTest.cpp"], - supports_static_listing = False, - deps = [ - "fbsource//third-party/fmt:fmt", - ":overlay_test_util", - "//eden/common/telemetry:structured_logger", - "//eden/common/testharness:temp_file", - "//eden/fs/inodes:inodes", - "//eden/fs/inodes/fscatalog:fsinodecatalog", - "//eden/fs/telemetry:stats", - "//eden/fs/testharness:test_util", - "//folly:exception", - "//folly:expected", - "//folly:file_util", - "//folly:range", - "//folly/portability:gtest", - "//folly/testing:test_util", - ], -) - -cpp_unittest( - name = "remove", - srcs = ["RemoveTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_checks", - "//eden/fs/testharness:test_mount", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "rename", - srcs = ["RenameTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/utils:bug", - "//eden/fs/inodes:inodes", - "//eden/fs/store:context", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//eden/fs/testharness:test_util", - "//folly:string", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "symlink", - srcs = ["SymlinkTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/utils:bug", - "//eden/fs/inodes:inodes", - "//eden/fs/store:context", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//eden/fs/testharness:test_util", - "//folly:string", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "traverse", - srcs = ["TraverseTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "tree_inode", - srcs = ["TreeInodeTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:fault_injector", - "//eden/fs/fuse:fuse", - "//eden/fs/inodes:inodes", - "//eden/fs/model:model", - "//eden/fs/nfs:dirlist", - "//eden/fs/prjfs:prjfs", - "//eden/fs/store:context", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_checks", - "//eden/fs/testharness:test_mount", - "//eden/fs/testharness:test_util", - "//folly:exception", - "//folly:random", - "//folly/executors:manual_executor", - "//folly/portability:gflags", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "virtual_inode", - srcs = ["VirtualInodeTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:fault_injector", - "//eden/common/utils:utils", - "//eden/fs/config:config", - "//eden/fs/digest:blake3_hash", - "//eden/fs/fuse:fuse", - "//eden/fs/inodes:inodes", - "//eden/fs/model:model", - "//eden/fs/prjfs:prjfs", - "//eden/fs/service:thrift-cpp2-types", - "//eden/fs/store:context", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:inode_unloader", - "//eden/fs/testharness:test_checks", - "//eden/fs/testharness:test_mount", - "//folly:exception", - "//folly:random", - "//folly/executors:manual_executor", - "//folly/portability:gflags", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_unittest( - name = "unload", - srcs = ["UnloadTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/store:context", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:inode_unloader", - "//eden/fs/testharness:test_mount", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_binary( - name = "make_gold_master_overlay", - srcs = ["make_gold_master_overlay.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:case_sensitivity", - "//eden/fs/config:config", - "//eden/fs/inodes:inodes", - "//eden/fs/telemetry:stats", - "//folly/init:init", - "//folly/portability:gflags", - ], -) - -cpp_benchmark( - name = "overlay_benchmark", - srcs = ["OverlayBenchmark.cpp"], - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/fs/config:config", - "//eden/fs/inodes:inodes", - "//eden/fs/telemetry:stats", - "//folly:stop_watch", - "//folly/init:init", - "//folly/portability:gflags", - ], -) - -cpp_benchmark( - name = "overlay_dir_serializer_benchmark", - srcs = ["OverlayDirSerializerBenchmark.cpp"], - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/fs/config:config", - "//eden/fs/inodes:inode_catalog", - "//eden/fs/inodes:inodes", - "//eden/fs/telemetry:stats", - "//folly:stop_watch", - "//folly/init:init", - "//folly/portability:gflags", - "//thrift/lib/cpp2/protocol:protocol", - ], -) diff --git a/eden/fs/journal/TARGETS b/eden/fs/journal/TARGETS deleted file mode 100644 index 4c24e194ea41d..0000000000000 --- a/eden/fs/journal/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "journal", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - deps = [ - "//eden/common/utils:match", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/model:model", - "//eden/fs/service:thrift-streaming-cpp2-types", - "//eden/fs/telemetry:stats", - "//folly:function", - "//folly:synchronized", - ], -) diff --git a/eden/fs/journal/test/TARGETS b/eden/fs/journal/test/TARGETS deleted file mode 100644 index 8f6b2a770f43d..0000000000000 --- a/eden/fs/journal/test/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - supports_static_listing = False, - deps = [ - "//eden/fs/journal:journal", - "//eden/fs/model:model", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/lmdb/TARGETS b/eden/fs/lmdb/TARGETS deleted file mode 100644 index 27a4134522c55..0000000000000 --- a/eden/fs/lmdb/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "lmdb", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - deps = [ - "//folly/logging:logging", - ], - exported_deps = [ - "fbsource//third-party/lmdb/libraries/liblmdb:liblmdb", # @manual - "//eden/common/utils:path", - "//folly:synchronized", - ], -) diff --git a/eden/fs/model/TARGETS b/eden/fs/model/TARGETS deleted file mode 100644 index 0dee9b1abdf54..0000000000000 --- a/eden/fs/model/TARGETS +++ /dev/null @@ -1,69 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "model", - srcs = [ - "Hash.cpp", - "ObjectId.cpp", - "RootId.cpp", - "Tree.cpp", - "TreeEntry.cpp", - ], - headers = [ - "Blob.h", - "BlobAuxData.h", - "EntryAttributeFlags.h", - "GlobEntry.h", - "LocalFiles.h", - "TreeAuxData.h", - ], - deps = [ - "//eden/common/utils:enum", - "//eden/common/utils:throw", - "//eden/fs/digest:blake3_hash", - "//folly:conv", - "//folly:string", - "//folly/logging:logging", - "//folly/ssl:openssl_hash", - ], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - ":model-fwd", - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:option_set", - "//eden/common/utils:path", - "//eden/common/utils:utils", - "//eden/fs/service:thrift-cpp2-types", - "//folly:c_portability", - "//folly:fbstring", - "//folly:range", - "//folly:try", - "//folly/container:array", - "//folly/io:iobuf", - ], - exported_external_deps = [ - "boost", - ], -) - -cpp_library( - name = "testutil", - srcs = [ - "TestOps.cpp", - ], - exported_deps = [ - ":model", - ], -) - -cpp_library( - name = "model-fwd", - headers = [ - "BlobAuxDataFwd.h", - "BlobFwd.h", - "TreeAuxDataFwd.h", - "TreeFwd.h", - ], -) diff --git a/eden/fs/model/git/TARGETS b/eden/fs/model/git/TARGETS deleted file mode 100644 index 9cea417a277aa..0000000000000 --- a/eden/fs/model/git/TARGETS +++ /dev/null @@ -1,55 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "git", - srcs = [ - "GitBlob.cpp", - "GitTree.cpp", - ], - headers = [ - "GitBlob.h", - "GitTree.h", - ], - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/utils:throw", - "//eden/fs/model:model", - "//folly:conv", - ], - exported_deps = [ - "//eden/fs/model:model-fwd", - "//folly:range", - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "gitignore", - srcs = [ - "GitIgnore.cpp", - "GitIgnoreFileParser.cpp", - "GitIgnorePattern.cpp", - "GitIgnoreStack.cpp", - ], - headers = [ - "GitIgnore.h", - "GitIgnoreFileParser.h", - "GitIgnorePattern.h", - "GitIgnoreStack.h", - "TopLevelIgnores.h", - ], - deps = [ - "//eden/common/utils:system_error", - "//folly:file", - "//folly:file_util", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/utils:matcher", - "//folly:expected", - "//folly:range", - ], -) diff --git a/eden/fs/model/git/test/TARGETS b/eden/fs/model/git/test/TARGETS deleted file mode 100644 index de2e945feb298..0000000000000 --- a/eden/fs/model/git/test/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - supports_static_listing = False, - deps = [ - "//eden/fs/model:model", - "//eden/fs/model:testutil", - "//eden/fs/model/git:git", - "//eden/fs/model/git:gitignore", - "//folly:string", - "//folly/io:iobuf", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/model/test/TARGETS b/eden/fs/model/test/TARGETS deleted file mode 100644 index 0225784732982..0000000000000 --- a/eden/fs/model/test/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - supports_static_listing = False, - deps = [ - "//eden/common/utils:path", - "//eden/fs/model:model", - "//eden/fs/testharness:test_util", - "//eden/fs/utils:eden_error", - "//folly:range", - "//folly:string", - "//folly/container:array", - "//folly/io:iobuf", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/monitor/TARGETS b/eden/fs/monitor/TARGETS deleted file mode 100644 index 8dfda5f6010bf..0000000000000 --- a/eden/fs/monitor/TARGETS +++ /dev/null @@ -1,78 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_binary( - name = "edenfs_monitor", - srcs = ["main.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - ":edenfs_monitor_lib", - "//eden/common/utils:path", - "//eden/common/utils:user_info", - "//eden/fs/config:config", - "//eden/fs/service:init", - "//folly:exception", - "//folly:file", - "//folly:file_util", - "//folly/init:init", - "//folly/logging:logging", - ], -) - -cpp_library( - name = "edenfs_monitor_lib", - srcs = glob( - ["*.cpp"], - exclude = ["main.cpp"], - ), - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - os_deps = [ - ( - "linux", - [ - "third-party//systemd:systemd", - ], - ), - ], - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/fs:config", - "//eden/fs/config:config", - "//eden/fs/service:init", - "//eden/fs/service:thrift-cpp2-clients", - "//eden/fs/utils:clock", - "//folly:exception", - "//folly:exception_string", - "//folly:file_util", - "//folly:network_address", - "//folly:string", - "//folly/futures:core", - "//folly/io/async:async_signal_handler", - "//folly/io/async:async_socket", - "//folly/logging:logging", - "//folly/portability:gflags", - "//folly/portability:sys_stat", - "//thrift/lib/cpp2/async:header_client_channel", - ], - exported_deps = [ - "fbsource//third-party/googletest:gtest_headers", - "//eden/common/utils:path", - "//eden/common/utils:process", - "//folly:file", - "//folly:portability", - "//folly:range", - "//folly:synchronized", - "//folly/io/async:async_base", - ], - external_deps = [ - ("boost", None, "boost_filesystem"), - ], -) diff --git a/eden/fs/monitor/test/TARGETS b/eden/fs/monitor/test/TARGETS deleted file mode 100644 index 32b62e9fecd9b..0000000000000 --- a/eden/fs/monitor/test/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*.cpp"]), - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/testharness:temp_file", - "//eden/fs/monitor:edenfs_monitor_lib", - "//eden/fs/testharness:fake_clock", - "//folly:range", - "//folly/logging:logging", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/nfs/TARGETS b/eden/fs/nfs/TARGETS deleted file mode 100644 index a4fcb37a8dcc1..0000000000000 --- a/eden/fs/nfs/TARGETS +++ /dev/null @@ -1,147 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "mountd", - srcs = ["Mountd.cpp"], - headers = ["Mountd.h"], - deps = [ - ":mountd_rpc", - "//eden/common/utils:immediate_future", - "//eden/fs/nfs/rpc:server", - "//folly:synchronized", - "//folly:utility", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/inodes:inode_number", - "//folly:file", - "//folly:network_address", - "//folly/futures:core", - ], -) - -cpp_library( - name = "mountd_rpc", - srcs = ["MountdRpc.cpp"], - headers = ["MountdRpc.h"], - exported_deps = [ - ":nfsd_rpc", - "//eden/fs/nfs/rpc:rpc", - ], -) - -cpp_library( - name = "nfsd3", - srcs = [ - "NfsRequestContext.cpp", - "Nfsd3.cpp", - ], - headers = [ - "NfsRequestContext.h", - "Nfsd3.h", - ], - deps = [ - ":nfs_utils", - ":nfsd_rpc", - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:system_error", - "//eden/common/utils:throw", - "//eden/common/utils:utils", - "//eden/fs/privhelper:interface", - "//eden/fs/store:context", - "//eden/fs/telemetry:fs_event_logger", - "//eden/fs/telemetry:log_info", - "//eden/fs/utils:clock", - "//eden/fs/utils:static_assert", - "//folly:utility", - "//folly/executors:serial_executor", - "//folly/futures:core", - "//folly/portability:stdlib", - ], - exported_deps = [ - ":dispatcher", - "//eden/common/telemetry:telemetry", - "//eden/common/utils:case_sensitivity", - "//eden/fs/inodes:fs_channel", - "//eden/fs/inodes:request_context", - "//eden/fs/nfs/rpc:server", - "//eden/fs/utils:process_access_log", - ], -) - -cpp_library( - name = "nfsd_rpc", - srcs = ["NfsdRpc.cpp"], - headers = ["NfsdRpc.h"], - deps = [ - "fbsource//third-party/fmt:fmt", - "//folly:range", - "//folly:string", - ], - exported_deps = [ - "//eden/fs/inodes:inode_number", - "//eden/fs/nfs/rpc:rpc", - ], -) - -cpp_library( - name = "nfs_server", - srcs = ["NfsServer.cpp"], - headers = ["NfsServer.h"], - deps = [ - ":nfsd3", - "//eden/fs/nfs/portmap:portmapserver", - ], - exported_deps = [ - ":mountd", - "//eden/common/utils:case_sensitivity", - "//eden/fs/inodes:fs_channel", - "//eden/fs/nfs/rpc:server", - ], -) - -cpp_library( - name = "dispatcher", - srcs = ["NfsDispatcher.cpp"], - headers = ["NfsDispatcher.h"], - deps = [ - "//eden/fs/telemetry:stats", - ], - exported_deps = [ - ":dirlist", - "//eden/common/utils:file_utils", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/common/utils:ref_ptr", - "//eden/fs/inodes:inode_metadata", - "//eden/fs/inodes:inode_number", - "//eden/fs/store:context", - ], -) - -cpp_library( - name = "dirlist", - srcs = ["NfsDirList.cpp"], - headers = ["NfsDirList.h"], - exported_deps = [ - ":nfsd_rpc", - "//eden/fs/inodes:inode_number", - ], -) - -cpp_library( - name = "nfs_utils", - srcs = ["NfsUtils.cpp"], - headers = ["NfsUtils.h"], - exported_deps = [ - ":nfsd_rpc", - "//eden/common/utils:throw", - "//eden/common/utils:utils", - "//folly:try", - "//folly:utility", - "//folly/portability:sys_stat", - ], -) diff --git a/eden/fs/nfs/portmap/TARGETS b/eden/fs/nfs/portmap/TARGETS deleted file mode 100644 index 74882ce0f4303..0000000000000 --- a/eden/fs/nfs/portmap/TARGETS +++ /dev/null @@ -1,66 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "portmap", - srcs = ["PortmapClient.cpp"], - headers = ["PortmapClient.h"], - deps = [ - "//folly:exception", - "//folly:network_address", - "//folly:string", - "//folly/logging:logging", - ], - exported_deps = [ - ":rpcbindrpc", - "//eden/fs/nfs/rpc:rpc", - "//folly/net:network_socket", - ], -) - -cpp_library( - name = "portmapserver", - srcs = ["Rpcbindd.cpp"], - headers = ["Rpcbindd.h"], - deps = [ - ":rpcbindrpc", - "//eden/common/utils:immediate_future", - "//eden/fs/nfs:mountd_rpc", - "//eden/fs/nfs/rpc:server", - "//folly:synchronized", - "//folly:utility", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/inodes:inode_number", - ], -) - -cpp_library( - name = "rpcbindrpc", - srcs = ["RpcbindRpc.cpp"], - headers = ["RpcbindRpc.h"], - exported_deps = [ - "//eden/fs/nfs:nfsd_rpc", - "//eden/fs/nfs/rpc:rpc", - ], -) - -cpp_binary( - name = "portmap_util", - srcs = ["PortmapUtil.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - ":portmap", - "//folly:network_address", - "//folly/init:init", - "//folly/logging:init", - "//folly/logging:logging", - ], -) diff --git a/eden/fs/nfs/rpc/TARGETS b/eden/fs/nfs/rpc/TARGETS deleted file mode 100644 index 99e8d6a0ccd64..0000000000000 --- a/eden/fs/nfs/rpc/TARGETS +++ /dev/null @@ -1,51 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "rpc", - srcs = [ - "Rpc.cpp", - "StreamClient.cpp", - ], - headers = [ - "Rpc.h", - "StreamClient.h", - ], - deps = [ - "//folly:exception", - "//folly:string", - ], - exported_deps = [ - "//eden/fs/nfs/xdr:xdr", - "//folly:network_address", - "//folly/io:iobuf", - "//folly/logging:logging", - "//folly/net:network_socket", - ], -) - -cpp_library( - name = "server", - srcs = ["RpcServer.cpp"], - headers = ["RpcServer.h"], - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:throw", - "//eden/fs/telemetry:log_info", - "//folly:string", - "//folly/futures:core", - "//folly/io:iobuf", - ], - exported_deps = [ - ":rpc", - "//eden/common/utils:immediate_future", - "//eden/fs/inodes:fs_channel", - "//eden/fs/nfs/portmap:portmap", - "//eden/fs/utils:event_base_state", - "//folly:network_address", - "//folly/io/async:async_socket", - "//folly/io/async:server_socket", - "//folly/net:network_socket", - ], -) diff --git a/eden/fs/nfs/rpc/test/TARGETS b/eden/fs/nfs/rpc/test/TARGETS deleted file mode 100644 index 6f8f4e928f6bd..0000000000000 --- a/eden/fs/nfs/rpc/test/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - supports_static_listing = False, - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/fs/nfs/rpc:rpc", - "//eden/fs/nfs/rpc:server", - "//eden/fs/nfs/testharness:xdr_test_utils", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/nfs/test/TARGETS b/eden/fs/nfs/test/TARGETS deleted file mode 100644 index f6a4482fbae57..0000000000000 --- a/eden/fs/nfs/test/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - supports_static_listing = False, - deps = [ - "//eden/fs/nfs:dirlist", - "//eden/fs/nfs:nfs_utils", - "//eden/fs/nfs:nfsd_rpc", - "//eden/fs/nfs/testharness:xdr_test_utils", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/nfs/testharness/TARGETS b/eden/fs/nfs/testharness/TARGETS deleted file mode 100644 index ef0abb4044d15..0000000000000 --- a/eden/fs/nfs/testharness/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "xdr_test_utils", - srcs = ["XdrTestUtils.cpp"], - headers = ["XdrTestUtils.h"], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/fs/nfs/xdr:xdr", - "//folly/io:iobuf", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/nfs/xdr/TARGETS b/eden/fs/nfs/xdr/TARGETS deleted file mode 100644 index 513c6741450f1..0000000000000 --- a/eden/fs/nfs/xdr/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "xdr", - srcs = ["Xdr.cpp"], - headers = ["Xdr.h"], - exported_deps = [ - "//folly:preprocessor", - "//folly/io:iobuf", - ], -) diff --git a/eden/fs/nfs/xdr/test/TARGETS b/eden/fs/nfs/xdr/test/TARGETS deleted file mode 100644 index ffcf5eb9e4b6f..0000000000000 --- a/eden/fs/nfs/xdr/test/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - supports_static_listing = False, - deps = [ - "//eden/fs/nfs/testharness:xdr_test_utils", - "//eden/fs/nfs/xdr:xdr", - "//folly/container:array", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/notifications/TARGETS b/eden/fs/notifications/TARGETS deleted file mode 100644 index 3f6c94813fe25..0000000000000 --- a/eden/fs/notifications/TARGETS +++ /dev/null @@ -1,108 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_genrule") - -oncall("scm_client_infra") - -cpp_library( - name = "constants", - headers = [ - "WindowsNotifierConstants.h", - ], -) - -buck_genrule( - name = "WindowsNotifier.res", - srcs = [ - "WindowsNotifier.rc", - "WindowsNotifierConstants.h", - "edenb256.ico", - "edenfs.exe.manifest", - "edeng256.ico", - "edeno256.ico", - "edenr256.ico", - "edenw256.ico", - ], - out = "WindowsNotifier.res", - cmd_exe = "$(exe fbsource//third-party/toolchains/windows10sdk:invoke_rc) -d EDENFS_INCLUDE_MANIFEST -fo $OUT WindowsNotifier.rc", - compatible_with = [ - "ovr_config//os:windows", - ], - exec_compatible_with = [ - "ovr_config//os:windows", - ], -) - -cpp_library( - name = "notifier", - srcs = ["Notifier.cpp"], - headers = ["Notifier.h"], - deps = [ - "//eden/common/utils:system_error", - "//folly/futures:core", - ], - exported_deps = [ - "//eden/fs/config:config", - "//folly:synchronized", - ], -) - -cpp_library( - name = "null_notifier", - headers = ["NullNotifier.h"], - exported_deps = [ - ":notifier", - ], -) - -cpp_library( - name = "windows_notifier", - srcs = ["WindowsNotifier.cpp"], - headers = ["WindowsNotifier.h"], - os_deps = [ - ( - "windows", - [ - "fbsource//third-party/toolchains/win:ComCtl32.Lib", - "fbsource//third-party/toolchains/win:shell32.lib", - ], - ), - ], - os_linker_flags = [ - ( - "windows", - ["$(location :WindowsNotifier.res)"], - ), - ], - deps = [ - "fbsource//third-party/fmt:fmt", - ":constants", - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:process", - "//eden/common/utils:stringconv", - "//eden/common/utils:system_error", - "//eden/fs/config:config", - "//eden/fs/telemetry:log_info", - "//folly/futures:core", - "//folly/portability:windows", - ], - exported_deps = [ - ":notifier", - "//eden/common/utils:utils", - "//folly:synchronized", - ], -) - -cpp_library( - name = "command_notifier", - srcs = ["CommandNotifier.cpp"], - headers = ["CommandNotifier.h"], - deps = [ - "//eden/common/utils:process", - "//eden/common/utils:system_error", - "//eden/fs/config:config", - "//folly/futures:core", - ], - exported_deps = [ - ":notifier", - ], -) diff --git a/eden/fs/privhelper/TARGETS b/eden/fs/privhelper/TARGETS deleted file mode 100644 index 90ff8741e588e..0000000000000 --- a/eden/fs/privhelper/TARGETS +++ /dev/null @@ -1,154 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "interface", - srcs = ["PrivHelper.cpp"], - headers = ["PrivHelper.h"], - deps = [ - "//folly:file", - "//folly/futures:core", - "//folly/io/async:async_base", - ], - exported_deps = [ - "//folly:network_address", - "//folly:portability", - "//folly:range", - ], -) - -cpp_library( - name = "flags", - srcs = ["PrivHelperFlags.cpp"], - headers = ["PrivHelperFlags.h"], - exported_deps = [ - "//folly/portability:gflags", - ], -) - -cpp_library( - name = "conn", - srcs = ["PrivHelperConn.cpp"], - headers = ["PrivHelperConn.h"], - deps = [ - "//eden/common/utils:bug", - "//eden/common/utils:system_error", - "//eden/common/utils:throw", - "//folly:demangle", - "//folly:exception", - "//folly:file", - "//folly:file_util", - "//folly:network_address", - "//folly:scope_guard", - "//folly/futures:core", - "//folly/logging:logging", - "//folly/portability:gflags", - "//folly/portability:sockets", - "//folly/portability:unistd", - ], - exported_deps = [ - "fbcode//eden/common/utils:io", - "fbcode//folly:range", - "fbcode//folly/io:iobuf", - "fbsource//third-party/fmt:fmt", - ], -) - -cpp_library( - name = "server", - srcs = [ - "PrivHelperServer.cpp", - "PrivHelperServerSanityCheck.cpp", - ], - headers = ["PrivHelperServer.h"], - os_deps = [ - ( - "macos", - [ - "fbsource//third-party/osxfuse:osxfuse", - "fbsource//third-party/toolchains/macos:CoreFoundation", - "fbsource//third-party/toolchains/macos:IOKit", - ], - ), - ], - deps = [ - "fbcode//eden/common/utils:fsdetect", - "fbcode//eden/common/utils:path", - "fbcode//eden/common/utils:process", - "fbcode//eden/common/utils:sysctl_util", - "fbcode//eden/common/utils:throw", - "fbcode//eden/fs/privhelper:nfs_rpc", - "fbcode//folly:conv", - "fbcode//folly:exception", - "fbcode//folly:expected", - "fbcode//folly:file", - "fbcode//folly:file_util", - "fbcode//folly:network_address", - "fbcode//folly:string", - "fbcode//folly:utility", - "fbcode//folly/init:init", - "fbcode//folly/io:iobuf", - "fbcode//folly/io/async:async_base", - "fbcode//folly/logging:init", - "fbcode//folly/logging:logging", - "fbcode//folly/portability:unistd", - "fbcode//folly/system:thread_name", - ], - exported_deps = [ - ":conn", - "//eden/common/utils:io", - ], - external_deps = [ - ("boost", None, "boost_algorithm"), - ], -) - -cpp_library( - name = "privhelper", - srcs = [ - "PrivHelperImpl.cpp", - ], - headers = [ - "PrivHelperImpl.h", - ], - deps = [ - ":conn", - ":flags", - ":interface", - ":server", - "//eden/common/utils:bug", - "//eden/common/utils:io", - "//eden/common/utils:process", - "//eden/common/utils:user_info", - "//eden/fs/utils:eden_error", - "//folly:exception", - "//folly:expected", - "//folly:file", - "//folly:file_util", - "//folly:network_address", - "//folly:string", - "//folly:synchronized", - "//folly/futures:core", - "//folly/init:init", - "//folly/io:iobuf", - "//folly/io/async:async_base", - "//folly/logging:init", - "//folly/logging:logging", - "//folly/portability:sys_types", - "//folly/portability:unistd", - ], - exported_deps = [ - "//eden/common/utils:path", - "//folly/portability:gflags", - ], -) - -cpp_library( - name = "nfs_rpc", - srcs = ["NfsMountRpc.cpp"], - headers = ["NfsMountRpc.h"], - exported_deps = [ - "//eden/fs/nfs/xdr:xdr", - ], -) diff --git a/eden/fs/privhelper/test/TARGETS b/eden/fs/privhelper/test/TARGETS deleted file mode 100644 index 52f3711889ec2..0000000000000 --- a/eden/fs/privhelper/test/TARGETS +++ /dev/null @@ -1,57 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = [ - "PrivHelperTest.cpp", - "PrivHelperTestServer.cpp", - ], - headers = ["PrivHelperTestServer.h"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/testharness:temp_file", - "//eden/common/utils:system_error", - "//eden/common/utils:user_info", - "//eden/fs/privhelper:conn", - "//eden/fs/privhelper:interface", - "//eden/fs/privhelper:privhelper", - "//eden/fs/privhelper:server", - "//folly:conv", - "//folly:exception", - "//folly:file", - "//folly:file_util", - "//folly:range", - "//folly/futures:core", - "//folly/io/async:async_base", - "//folly/io/async:event_base_thread", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/test:test_utils", - "//folly/testing:test_util", - ], - external_deps = [ - ("boost", None, "boost_filesystem"), - ], -) - -cpp_binary( - name = "drop_privs", - srcs = ["DropPrivs.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/utils:user_info", - "//folly/init:init", - "//folly/logging:init", - "//folly/logging:logging", - "//folly/portability:unistd", - ], -) diff --git a/eden/fs/prjfs/TARGETS b/eden/fs/prjfs/TARGETS deleted file mode 100644 index b481953cb6a2a..0000000000000 --- a/eden/fs/prjfs/TARGETS +++ /dev/null @@ -1,85 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "prjfs", - srcs = [ - "Enumerator.cpp", - "PrjfsChannel.cpp", - "PrjfsDispatcher.cpp", - ], - headers = [ - "Enumerator.h", - "PrjfsChannel.h", - "PrjfsDispatcher.h", - "PrjfsRequestContext.h", - ], - os_deps = [ - ( - "windows", - ["fbsource//third-party/toolchains/win:ProjectedFSLib.lib"], - ), - ], - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:bug", - "//eden/common/utils:fault_injector", - "//eden/common/utils:stringconv", - "//eden/common/utils:win_error", - "//eden/fs/config:config", - "//eden/fs/notifications:notifier", - "//eden/fs/telemetry:log_info", - "//eden/fs/telemetry:stats", - "//eden/fs/utils:eden_error", - "//eden/fs/utils:static_assert", - "//folly/executors:global_executor", - "//folly/executors:serial_executor", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/telemetry:telemetry", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/common/utils:ref_ptr", - "//eden/common/utils:utils", - "//eden/fs/inodes:fs_channel", - "//eden/fs/inodes:inode_metadata", - "//eden/fs/inodes:request_context", - "//eden/fs/model:model", - "//eden/fs/service:thrift-cpp2-types", - "//eden/fs/utils:process_access_log", - "//folly/concurrency/memory:atomic_read_mostly_main_ptr", - "//folly/executors:sequenced_executor", - "//folly/futures:future_splitter", - "//folly/portability:windows", - "//thrift/lib/cpp/util:enum_utils", - ], -) - -cpp_library( - name = "disk_state", - srcs = [ - "PrjfsDiskState.cpp", - ], - headers = [ - "PrjfsDiskState.h", - ], - deps = [ - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:file_utils", - "//eden/common/utils:win_error", - "//eden/fs/config:config", - "//eden/fs/inodes:inode_number", - "//eden/fs/utils:projfs_util", - "//folly/executors:serial_executor", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/common/utils:utils", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/model:model", - "//folly/portability:windows", - ], -) diff --git a/eden/fs/py/eden/TARGETS b/eden/fs/py/eden/TARGETS deleted file mode 100644 index b3beced20387e..0000000000000 --- a/eden/fs/py/eden/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -python_library( - name = "dirstate", - srcs = [ - "dirstate.py", - ], - base_module = "eden", -) - -python_library( - name = "config", - srcs = [ - "config.py", - ], - base_module = "eden", -) diff --git a/eden/fs/py/eden/thrift/TARGETS b/eden/fs/py/eden/thrift/TARGETS deleted file mode 100644 index d6a50b5fbf5bd..0000000000000 --- a/eden/fs/py/eden/thrift/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -python_library( - name = "legacy", - srcs = ["legacy.py"], - base_module = "eden.thrift", - os_deps = [ - ( - "windows", - [":windows_thrift"], - ), - ], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//thrift/lib/py:base", - "//thrift/lib/py:server_base", - ], -) - -python_library( - name = "windows_thrift", - srcs = ["windows_thrift.py"], - base_module = "eden.thrift", - deps = [ - "fbsource//third-party/pypi/typing-extensions:typing-extensions", - "//thrift/lib/py:server_base", - ], -) diff --git a/eden/fs/py/test/TARGETS b/eden/fs/py/test/TARGETS deleted file mode 100644 index 73dcecf7a48a5..0000000000000 --- a/eden/fs/py/test/TARGETS +++ /dev/null @@ -1,11 +0,0 @@ -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") - -oncall("scm_client_infra") - -python_unittest( - name = "test", - srcs = glob(["*.py"]), - deps = [ - "//eden/fs/py/eden:dirstate", - ], -) diff --git a/eden/fs/rocksdb/TARGETS b/eden/fs/rocksdb/TARGETS deleted file mode 100644 index 9d953ced33a25..0000000000000 --- a/eden/fs/rocksdb/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "rocksdb", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - deps = [ - "//folly/logging:logging", - ], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - "//folly:likely", - "//rocksdb:rocksdb", - ], -) diff --git a/eden/fs/scripts/facebook/TARGETS b/eden/fs/scripts/facebook/TARGETS deleted file mode 100644 index f3d6960204d56..0000000000000 --- a/eden/fs/scripts/facebook/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") - -oncall("scm_client_infra") - -python_binary( - name = "find_changed_dependencies", - srcs = ["find_changed_dependencies.py"], - main_function = "eden.fs.scripts.facebook.find_changed_dependencies.main", -) - -python_binary( - name = "bisect", - srcs = ["bisect.py"], - main_function = "eden.fs.scripts.facebook.bisect.main", -) diff --git a/eden/fs/scripts/facebook/macos_crashes/TARGETS b/eden/fs/scripts/facebook/macos_crashes/TARGETS deleted file mode 100644 index f46da7c0eb8fd..0000000000000 --- a/eden/fs/scripts/facebook/macos_crashes/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") - -oncall("scm_client_infra") - -python_binary( - name = "download_macos_crashes", - srcs = ["download_macos_crashes.py"], - main_function = "eden.fs.scripts.facebook.macos_crashes.download_macos_crashes.main", - deps = [ - "fbsource//third-party/pypi/requests:requests", - "//ti/urlgen:everstore_url_py", - ], -) - -python_binary( - name = "parse_macos_crash", - srcs = ["parse_macos_crash.py"], - main_function = "eden.fs.scripts.facebook.macos_crashes.parse_macos_crash.main", -) diff --git a/eden/fs/scripts/facebook/rpmbisect/TARGETS b/eden/fs/scripts/facebook/rpmbisect/TARGETS deleted file mode 100644 index d5ce8b0901b11..0000000000000 --- a/eden/fs/scripts/facebook/rpmbisect/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") -load("@fbcode_macros//build_defs:python_pytest.bzl", "python_pytest") - -oncall("scm_client_infra") - -python_library( - name = "rpmbisect", - srcs = ["__init__.py"], -) - -python_binary( - name = "bisect_watchman_hashbang", - srcs = ["bisect_watchman_hashbang.py"], - main_function = "eden.fs.scripts.facebook.rpmbisect.bisect_watchman_hashbang.main", - deps = [":rpmbisect"], -) - -python_pytest( - name = "rpmbisect_test", - srcs = ["rpmbisect_test.py"], - deps = [ - ":rpmbisect", - ], -) diff --git a/eden/fs/service/TARGETS b/eden/fs/service/TARGETS deleted file mode 100644 index 98def0654405f..0000000000000 --- a/eden/fs/service/TARGETS +++ /dev/null @@ -1,640 +0,0 @@ -load("@fbcode//eden:defs.bzl", "get_oss_suffix", "make_rule_compatible_with") -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:java_binary.bzl", "java_binary") -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_genrule") -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") -load("@fbsource//tools/build_defs:audit_dependencies_test.bzl", "audit_dependencies_test") - -oncall("scm_client_infra") - -cpp_library( - name = "main", - srcs = [ - "EdenMain.cpp", - ], - os_deps = [ - ( - "linux", - [ - "//eden/fs/store/git:git", - ], - ), - ], - deps = [ - ":init", - ":startup_logger", - ":startup_status_subscriber", - "//eden/common/telemetry:log_info", - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:bug", - "//eden/common/utils:user_info", - "//eden/fs:config", - "//eden/fs/config:config", - "//eden/fs/inodes:inodes", - "//eden/fs/privhelper:interface", - "//eden/fs/privhelper:privhelper", - "//eden/fs/store:filtered_backing_store", - "//eden/fs/store:store", - "//eden/fs/store/filter:hg_sparse_filter", - "//eden/fs/store/hg:sapling_backing_store", - "//eden/fs/telemetry:log_info", - "//eden/fs/telemetry:scribe_logger", - "//eden/fs/utils:win_stacktrace", - "//fb303:function_stat_handler", - "//fb303:logging", - "//folly:conv", - "//folly:map_util", - "//folly:stop_watch", - "//folly/executors:function_scheduler", - "//folly/init:init", - "//folly/logging:init", - "//folly/logging:logging", - "//folly/portability:gflags", - "//folly/portability:unistd", - "//thrift/lib/cpp2:flags", - "//thrift/lib/cpp2:server", - ], - exported_deps = [ - ":server", - "//eden/fs/store:backing_store_interface", - "//eden/fs/telemetry:activity_recorder", - ], -) - -cpp_binary( - name = "edenfs", - srcs = [ - "facebook/main.cpp", - ], - linker_flags = select({ - "DEFAULT": [], - "ovr_config//os:windows": [ - "/STACK:2097152", # This was picked arbitrarily as 2 MB - ], - }), - metadata = { - "buck.cfg_modifiers": [ - "fbcode//eden/scm/lib/backingstore:edenfs-include-cas", - ], - }, - os_deps = [ - ( - "linux", - [ - "//eden/fs/store/facebook/http:http", - "//eden/fs/store/facebook/recas:recas", - "//eden/fs/telemetry/facebook:activity_recorder", - "//eden/fs/telemetry/facebook:scribe_logger", - ], - ), - ( - "macos", - [ - "//eden/fs/telemetry/facebook:activity_recorder", - "//eden/fs/telemetry/facebook:scribe_logger", - ], - ), - ], - deps = [ - ":main", - ":server", - "//blake3:blake3-constants-cpp2-types", - "//common/base:build_info", - "//common/fbwhoami:fb_who_am_i", - "//common/init:folly_global_counters", - "//common/init:light", - "//common/network:hostname", - "//common/services/cpp:build_values", - "//eden/fs/config:config", - "//eden/fs/inodes:inodes", - "//eden/fs/telemetry:activity_recorder", - "//eden/fs/telemetry:scribe_logger", - "//eden/fs/telemetry/facebook:logview_util", - "//fb303:function_stat_handler", - "//fb303:logging", - "//folly:conv", - "//folly:range", - "//folly/logging:init", - "//thrift/lib/cpp2:server", - ], -) - -cpp_binary( - name = "edenfs_privhelper", - srcs = ["PrivHelperMain.cpp"], - # See T103916156 - allocator = "malloc", - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/utils:user_info", - "//eden/fs/privhelper:flags", - "//eden/fs/privhelper:server", - "//folly:exception", - "//folly:file", - "//folly:file_util", - "//folly/init:init", - "//folly/logging:init", - "//folly/logging:logging", - ], -) - -buck_genrule( - name = "edenfs_privhelper_with_setuid_root", - srcs = [":edenfs_privhelper"], - out = "edenfs_privhelper_with_setuid_root", - bash = """ - cp $SRCS $OUT && - chmod 04755 $OUT - """, -) - -# The privhelper is installed setuid root. Since it is a privileged -# surface, limit its dependencies. -audit_dependencies_test( - name = "edenfs_privhelper_audit", - blocklist_patterns = [ - # SSLKEYLOGFILE allows writing arbitrary files as root. - "fbsource//third-party/rust:openssl-sys", - "fbsource//third-party/rust:openssl", - "//third-party-buck/platform.*/build/openssl:crypto", - # glog supports a GOOGLE_log_dir environment variable. I have - # been unable to use it to trigger a write to a root-owned - # directory, but ideally we wouldn't link with glog at all. - #"//third-party-buck/.*/build/glog:glog", - #"fbsource//third-party/glog/.*", - ], - compatible_with = [ - "ovr_config//os:linux", - ], - contacts = [ - "oncall+scm_client_infra@xmail.facebook.com", - ], - rule = ":edenfs_privhelper", -) - -cpp_binary( - name = "edenfs" + get_oss_suffix(), - srcs = [ - "oss/main.cpp", - ], - linker_flags = select({ - "DEFAULT": [], - "ovr_config//os:windows": [ - "/STACK:2097152", # This was picked arbitrarily as 2 MB - ], - }), - deps = [ - ":main", - ":server", - ], -) - -audit_dependencies_test( - name = "edenfs_audit", - blocklist_patterns = [ - "//eden/fs/model:testutil", - ], - compatible_with = [ - "ovr_config//os:linux", - ], - contacts = [ - "oncall+scm_client_infra@xmail.facebook.com", - ], - rule = ":edenfs" + get_oss_suffix(), -) - -cpp_library( - name = "init", - srcs = [ - "EdenInit.cpp", - ], - deps = [ - "//eden/common/utils:user_info", - "//eden/fs:config", - "//eden/fs/config:config", - ], - exported_deps = [ - "//eden/common/utils:path", - "//folly:conv", - "//folly/portability:gflags", - ], - external_deps = [ - ("boost", None, "boost_filesystem"), - ], -) - -cpp_library( - name = "startup_logger", - srcs = [ - "StartupLogger.cpp", - ], - headers = [ - "StartupLogger.h", - ], - compiler_flags = [ - "-D_GNU_SOURCE", - ], - deps = [ - ":init", - ":startup_status_subscriber", - "//eden/common/os:os", - "//eden/common/telemetry:log_info", - "//eden/fs:config", - "//eden/fs/privhelper:interface", - "//folly:exception", - "//folly:file_util", - "//folly:string", - "//folly/logging:logging", - "//folly/portability:unistd", - ], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/utils:io", - "//eden/common/utils:path", - "//eden/common/utils:process", - "//eden/fs/config:config", - "//folly:file", - "//folly:range", - "//folly/lang:assume", - "//folly/logging:log_level", - "//folly/portability:gflags", - ], -) - -cpp_library( - name = "startup_status_subscriber", - srcs = [ - "StartupStatusSubscriber.cpp", - ], - headers = [ - "StartupStatusSubscriber.h", - ], - deps = [ - "//eden/fs/utils:eden_error", - "//folly/logging:logging", - ], - exported_deps = [ - "//folly:synchronized", - ], -) - -cpp_library( - name = "thrift_startup_status_subscriber", - srcs = [ - "ThriftStreamStartupStatusSubscriber.cpp", - ], - headers = [ - "ThriftStreamStartupStatusSubscriber.h", - ], - deps = [ - "//folly/logging:logging", - ], - exported_deps = [ - ":startup_status_subscriber", - "//folly:cancellation_token", - "//thrift/lib/cpp2/async:server_stream", - ], -) - -cpp_library( - name = "usage_service", - srcs = [ - "UsageService.cpp", - ], - deps = [ - "//folly/logging:logging", - ], - exported_deps = [ - "//folly/futures:core", - ], -) - -cpp_library( - name = "server", - srcs = [ - "EdenCPUThreadPool.cpp", - "EdenServer.cpp", - "EdenServiceHandler.cpp", - "EdenStateDir.cpp", - "PeriodicTask.cpp", - "ThriftPermissionChecker.cpp", - ], - os_deps = [ - ( - "macos", - [ - "//folly:subprocess", - ], - ), - ( - "windows", - [ - "//eden/fs/notifications:windows_notifier", - ], - ), - ], - deps = [ - "//common/fb303/cpp:thread_pool_executor_counters", # @manual - "//eden/common/telemetry:log_info", - "//eden/common/telemetry:structured_logger_factory", - "//eden/common/utils:bug", - "//eden/common/utils:enum", - "//eden/common/utils:fault_injector", - "//eden/common/utils:file_utils", - "//eden/common/utils:process_info_cache", - "//eden/common/utils:string", - "//eden/common/utils:user_info", - "//eden/fs/config:config", - "//eden/fs/fuse:fuse", - "//eden/fs/journal:journal", - "//eden/fs/model/git:gitignore", - "//eden/fs/model:model", - "//eden/fs/nfs:nfs_server", - "//eden/fs/nfs:nfsd3", - "//eden/fs/notifications:command_notifier", - "//eden/fs/notifications:null_notifier", - "//eden/fs/privhelper:interface", - "//eden/fs/prjfs:prjfs", - # TODO: The edenfs_smartplatform_service dependency fans out to a ton - # of other dependencies, slowing down OSS builds and tests. We ideally - # should move it to facebook/main.cpp to avoid the cost in unit tests - # and OSS builds and tests. - "//eden/fs/service/facebook:edenfs_smartplatform_service", # @manual - "//eden/fs/service/facebook:server_observer", # @manual - "//eden/fs/store/filter:glob_filter", - "//eden/fs/store/hg:sapling_backing_store", - "//eden/fs/store:context", - "//eden/fs/store:filtered_backing_store", - "//eden/fs/store:rocksdb", - "//eden/fs/store:sqlite", - "//eden/fs/store:store", - "//eden/fs/telemetry:log_info", - "//eden/fs/telemetry:scribe_logger", - "//eden/fs/telemetry:structured_logger", - "//eden/fs/telemetry:task_trace", - "//eden/fs/utils:clock", - "//eden/fs/utils:eden_error", - "//eden/fs/utils:eden_task_queue", - "//eden/fs/utils:fs_channel_types", - "//eden/fs/utils:matcher", - "//eden/fs/utils:nfs_socket", - "//eden/fs/utils:proc_util", - "//eden/fs/utils:source_location", - "//fb303:service_data", - "//folly/chrono:conv", - "//folly/executors/thread_factory:named_thread_factory", - "//folly/executors:cpu_thread_pool_executor", - "//folly/executors:serial_executor", - "//folly/futures:core", - "//folly/io/async:async_signal_handler", - "//folly/json:dynamic", - "//folly/logging:logging", - "//folly/portability:gflags", - "//folly/portability:sys_types", - "//folly:conv", - "//folly:exception", - "//folly:file_util", - "//folly:random", - "//folly:stop_watch", - "//folly:string", - "//thrift/lib/cpp/concurrency:thread_manager", - "//thrift/lib/cpp/util:enum_utils", - "//thrift/lib/cpp2/async:server_stream", - "//thrift/lib/cpp2/server:cpp2_conn_context", - "//thrift/lib/cpp2/server:parallel_concurrency_controller", - "//thrift/lib/cpp2/server:round_robin_request_pile", - "//thrift/lib/cpp2/server:separallel_concurrency_controller", - "//thrift/lib/cpp2:server", - ":startup_logger", - ":startup_status_subscriber", - ":thrift-streaming-cpp2-types", - ":thrift_get_object_impl", - ":thrift_glob_impl", - ":thrift_startup_status_subscriber", - ":thrift_util", - ":usage_service", - "fbsource//third-party/cpptoml:cpptoml", - "fbsource//third-party/fmt:fmt", - ], - exported_deps = [ - ":thrift-cpp2-types", - ":thrift-streaming-cpp2-services", - "//eden/common/os:os", - "//eden/common/telemetry:telemetry", - "//eden/common/utils:path", - "//eden/common/utils:ref_ptr", - "//eden/common/utils:utils", - "//eden/fs:config", - "//eden/fs/inodes:inodes", - "//eden/fs/inodes/overlay:overlay_checker", - "//eden/fs/store:backing_store_interface", - "//eden/fs/takeover:takeover", - "//eden/fs/telemetry:activity_buffer", - "//eden/fs/telemetry:activity_recorder", - "//eden/fs/telemetry:stats", - "//fb303:base_service", - "//folly:executor", - "//folly:file", - "//folly:network_address", - "//folly:portability", - "//folly:range", - "//folly:synchronized", - "//folly:thread_local", - "//folly/futures:shared_promise", - "//folly/io/async:async_base", - "//folly/portability:sys_stat", - "//thrift/lib/cpp:event_handler_base", - ], - external_deps = [ - "re2", - ], -) - -# The eden.thrift interface. -# -# Note: C++ users should probably depend on the thrift_cpp rule below, -# rather than directly depending on this thrift_library(). The thrift_cpp rule -# includes this thrift_library() plus some extra utility code for working with -# the thrift C++ data structures. -thrift_library( - name = "thrift", - languages = [ - "cpp2", - "py3", - "python", - "rust", - "py-deprecated", - ], - py_base_module = "facebook", - rust_deps = [ - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - ], - thrift_rust_options = ["deprecated_default_enum_min_i32"], - thrift_srcs = { - "eden.thrift": ["EdenService"], - }, - deps = [ - "//eden/fs/config:config_thrift", - "//fb303/thrift:fb303_core", - "//thrift/annotation:cpp", - "//thrift/annotation:thrift", - ], -) - -thrift_library( - name = "thrift-streaming", - languages = [ - "cpp2", - "py3", - "python", - "rust", - ], - rust_autocargo = {"cargo_toml_dir": "thrift_streaming"}, - thrift_rust_options = ["deprecated_default_enum_min_i32"], - thrift_srcs = { - "streamingeden.thrift": [ - "StreamingEdenService", - ], - }, - deps = [ - ":thrift", - ], -) - -# A helper library for C++ that depends on the generated thrift stubs, -# and includes a few other utilities for working with the thrift types. -# -# Most C++ users should depend on this rule rather than directly using the -# thrift or thrift-streaming rules above. -cpp_library( - name = "pretty_printers", - srcs = ["PrettyPrinters.cpp"], - headers = ["PrettyPrinters.h"], - deps = [ - "//folly:conv", - ], - exported_deps = [ - ":thrift-cpp2-types", - ], -) - -cpp_library( - name = "thrift_util", - srcs = ["ThriftUtil.cpp"], - headers = ["ThriftUtil.h"], - deps = [ - "//folly:string", - ], - exported_deps = [ - "//eden/fs/model:model", - "//eden/fs/utils:eden_error", - "//folly:range", - ], -) - -cpp_library( - name = "thrift_glob_impl", - srcs = ["ThriftGlobImpl.cpp"], - headers = ["ThriftGlobImpl.h"], - deps = [ - ":thrift-cpp2-types", - "//eden/common/utils:utils", - "//eden/fs/config:config", - "//eden/fs/model:model", - "//eden/fs/store:context", - "//eden/fs/store:store", - "//eden/fs/utils:eden_error", - "//folly/logging:log_level", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/utils:immediate_future", - "//eden/common/utils:ref_ptr", - "//eden/fs/inodes:inodes", - "//eden/fs/utils:glob", - "//folly:range", - ], -) - -cpp_library( - name = "thrift_get_object_impl", - srcs = ["ThriftGetObjectImpl.cpp"], - headers = ["ThriftGetObjectImpl.h"], - deps = [ - ":thrift_util", - ], - exported_deps = [ - ":thrift-cpp2-types", - "//eden/common/utils:option_set", - "//eden/fs/inodes:inodes", - "//eden/fs/model:model", - "//eden/fs/store:store", - "//eden/fs/utils:eden_error", - "//folly:try", - ], -) - -# JAVA BINDINGS FOR THRIFT ENDPOINT -# -# There are two JAR files that we expect Java clients to use: -# 1. A JAR that defines Eden's Thrift API. -# 2. A JAR that contains the general Java library for Thrift. -# -# To update Buck's copy of the bindings, run eden/fs/facebook/update-buck-thrift.sh - -make_rule_compatible_with( - name = "thrift_buck", - compatible_with = [ - "ovr_config//os:linux", - ], - languages = [ - "javadeprecated", - ], - rule = thrift_library, - tags = ["noautodeps"], - thrift_srcs = { - "eden.thrift": ["EdenService"], - }, - deps = [ - "//eden/fs/config:config_thrift_buck", - "//fb303/thrift:fb303_core", - ], -) - -# This java_binary() exists as a simple way to get //thrift/lib/java/src:thrift -# and all of its transitive dependencies into one JAR file. -make_rule_compatible_with( - name = "java-thrift-dependencies", - # Currently, //thrift/lib/java/src:thrift pulls in org.slf4j, - # org.iq80.snappy, and org.apache.commons.lang. org.iq80.snappy is the only - # one we keep. - blacklist = [ - # Thrift only needs this dependency if the generated Java code uses - # `HashCodeBuilder`, which we do not. - "org.apache.commons.lang", - - # The primary consumer of this JAR is Buck. Buck already has its own copy - # of slf4j that should be compatible with the one we are pulling in as - # part of this build. We decide to strip it rather than jarjar it. - "org.slf4j", - - # Buck already bundles this; don't include it. - "javax.servlet", - ], - compatible_with = [ - "ovr_config//os:linux", - ], - jar_style = "jar", - java_version = "8", - rule = java_binary, - runtime = "8", - deps = [ - "//fb303/thrift:fb303_core-javadeprecated", - "//third-party-java/org.slf4j:slf4j-api", - "//thrift/lib/javadeprecated:thrift", - ], -) diff --git a/eden/fs/service/facebook/TARGETS b/eden/fs/service/facebook/TARGETS deleted file mode 100644 index 6c8148ecd7ce1..0000000000000 --- a/eden/fs/service/facebook/TARGETS +++ /dev/null @@ -1,63 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "server_observer", - srcs = [ - "ServerObserver.cpp", - ], - headers = [ - "ServerObserver.h", - ], - deps = [ - "//common/fb303/cpp:server_observer", - ], - exported_deps = [ - "//thrift/lib/cpp/server:server_observer", - ], -) - -cpp_library( - name = "edenfs_smartplatform_service", - srcs = [ - "EdenFSSmartPlatformServiceEndpoint.cpp", - ], - headers = [ - "EdenFSSmartPlatformServiceEndpoint.h", - ], - os_deps = [ - ( - "linux", - [ - "//servicerouter/client/cpp2:cpp2", - "//smart/edenfs/edenfs_service:service-if-cpp2-clients", - ], - ), - ( - "macos", - [ - "//c2p/secure_thrift/cpp/client:secure_thrift", - "//smart/edenfs/edenfs_service:service-if-cpp2-clients", - ], - ), - ( - "windows", - [ - "//eden/fs/prjfs:prjfs", - "//c2p/secure_thrift/cpp/client:secure_thrift", - "//smart/edenfs/edenfs_service:service-if-cpp2-clients", - ], - ), - ], - deps = [ - "//eden/common/utils:utils", - "//eden/fs/config:config", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/fs:config", - "//eden/fs/service:usage_service", - "//folly/futures:core", - ], -) diff --git a/eden/fs/service/test/TARGETS b/eden/fs/service/test/TARGETS deleted file mode 100644 index 575ae4a1ab18f..0000000000000 --- a/eden/fs/service/test/TARGETS +++ /dev/null @@ -1,86 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "startup_logger_test", - srcs = ["StartupLoggerTest.cpp"], - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "//eden/common/telemetry:log_info", - "//eden/common/utils:file_utils", - "//eden/common/utils:process", - "//eden/fs/service:startup_logger", - "//eden/fs/service:startup_status_subscriber", - "//folly:file", - "//folly:file_util", - "//folly/init:init", - "//folly/logging:logging", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/testing:test_util", - ], -) - -cpp_unittest( - name = "startup_status_subscriber_test", - srcs = ["StartupStatusSubscriberTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/service:startup_status_subscriber", - "//eden/fs/utils:eden_error", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "thrift_stream_startup_status_subscriber_test", - srcs = ["ThriftStreamStartupStatusSubscriberTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/service:thrift_startup_status_subscriber", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "periodic_task_test", - srcs = ["PeriodicTaskTest.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:windows", - ], - supports_static_listing = False, - deps = [ - "//eden/fs/service:server", - "//eden/fs/testharness:test_server", - "//folly/io/async/test:util", - "//folly/logging:logging", - "//folly/logging/test:test_handler", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//thrift/lib/cpp2:server", - ], -) - -cpp_unittest( - name = "thrift_glob_impl_test", - srcs = ["ThriftGlobImplTest.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:windows", - ], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/service:thrift-cpp2-types", - "//eden/fs/service:thrift_glob_impl", - "//eden/fs/store:context", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//eden/fs/testharness:test_server_state", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/sqlite/TARGETS b/eden/fs/sqlite/TARGETS deleted file mode 100644 index b6a6ff74ab41d..0000000000000 --- a/eden/fs/sqlite/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "sqlite", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - deps = [ - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/utils:path", - "//folly:synchronized", - ], - exported_external_deps = [ - ("sqlite", None, "sqlite"), - ], -) diff --git a/eden/fs/sqlite/test/TARGETS b/eden/fs/sqlite/test/TARGETS deleted file mode 100644 index 92a709d5bfdee..0000000000000 --- a/eden/fs/sqlite/test/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "sqlite", - srcs = ["SqliteTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/sqlite:sqlite", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/store/TARGETS b/eden/fs/store/TARGETS deleted file mode 100644 index 3561ee05b0711..0000000000000 --- a/eden/fs/store/TARGETS +++ /dev/null @@ -1,228 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -EDEN_STORE_UTIL_SRCS = ["eden_store_util.cpp"] - -cpp_binary( - name = "eden_store_util", - srcs = EDEN_STORE_UTIL_SRCS, - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - ":rocksdb", - ":store", - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:fault_injector", - "//eden/common/utils:user_info", - "//eden/fs/config:config", - "//eden/fs/service:init", - "//eden/fs/service:server", - "//eden/fs/telemetry:stats", - "//folly:range", - "//folly:stop_watch", - "//folly:string", - "//folly/container:array", - "//folly/container:enumerate", - "//folly/init:init", - "//folly/logging:init", - "//folly/logging:logging", - ], -) - -ROCKSDB_SRCS = ["RocksDbLocalStore.cpp"] - -ROCKSDB_HEADERS = ["RocksDbLocalStore.h"] - -cpp_library( - name = "rocksdb", - srcs = ROCKSDB_SRCS, - headers = ROCKSDB_HEADERS, - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:bug", - "//eden/common/utils:fault_injector", - "//eden/common/utils:throw", - "//eden/fs/config:config", - "//eden/fs/telemetry:log_info", - "//eden/fs/telemetry:stats", - "//eden/fs/telemetry:task_trace", - "//fb303:service_data", - "//folly:string", - "//folly/futures:core", - "//folly/io:iobuf", - "//folly/lang:bits", - "//folly/logging:logging", - "//rocksdb:rocksdb", - ], - exported_deps = [ - ":store", - "//eden/common/utils:utils", - "//eden/fs/rocksdb:rocksdb", - "//folly:cpp_attributes", - "//folly:synchronized", - ], -) - -SQLITE_SRCS = ["SqliteLocalStore.cpp"] - -SQLITE_HEADERS = ["SqliteLocalStore.h"] - -cpp_library( - name = "sqlite", - srcs = SQLITE_SRCS, - headers = SQLITE_HEADERS, - deps = [ - "//eden/fs/telemetry:stats", - "//folly/container:array", - ], - exported_deps = [ - ":store", - "//eden/fs/sqlite:sqlite", - "//folly:synchronized", - ], -) - -CONTEXT_SRCS = [ - "ObjectFetchContext.cpp", - "StatsFetchContext.cpp", - "ImportPriority.cpp", -] - -CONTEXT_HEADERS = [ - "ObjectFetchContext.h", - "StatsFetchContext.h", - "ImportPriority.h", -] - -cpp_library( - name = "context", - srcs = CONTEXT_SRCS, - headers = CONTEXT_HEADERS, - deps = [ - "//folly:cpp_attributes", - "//folly/logging:logging", - ], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/os:os", - "//eden/common/utils:ref_ptr", - "//eden/fs/telemetry:stats", - ], -) - -BACKING_STORE_TYPE_INF = ["BackingStoreType.h"] - -BACKING_STORE_TYPE_SRCS = ["BackingStoreType.cpp"] - -cpp_library( - name = "store_type", - srcs = BACKING_STORE_TYPE_SRCS, - headers = BACKING_STORE_TYPE_INF, - deps = [ - "//eden/common/utils:throw", - ], -) - -BACKING_STORE_INF = ["BackingStore.h"] - -cpp_library( - name = "backing_store_interface", - headers = BACKING_STORE_INF, - exported_deps = [ - ":context", - ":store_type", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/fs/model:model", - "//eden/fs/model:model-fwd", - "//folly:range", - "//folly/futures:core", - "//folly/memory:not_null", - ], -) - -FILTERED_BACKING_STORE_HEADERS = ["FilteredBackingStore.h"] - -FILTERED_BACKING_STORE_SRCS = ["FilteredBackingStore.cpp"] - -cpp_library( - name = "filtered_backing_store", - srcs = FILTERED_BACKING_STORE_SRCS, - headers = FILTERED_BACKING_STORE_HEADERS, - deps = [ - "//eden/common/utils:immediate_future", - "//eden/fs/model:model", - "//eden/fs/utils:filter_utils", - "//folly:varint", - ], - exported_deps = [ - "fbsource//third-party/googletest:gtest_headers", - ":backing_store_interface", - "//eden/common/utils:ref_ptr", - "//eden/common/utils:utils", - "//eden/fs/store/filter:filtered_object_id", - "//eden/fs/store/filter:filters", - ], -) - -cpp_library( - name = "store", - srcs = glob( - ["*.cpp"], - exclude = EDEN_STORE_UTIL_SRCS + ROCKSDB_SRCS + SQLITE_SRCS + CONTEXT_SRCS + FILTERED_BACKING_STORE_SRCS + BACKING_STORE_TYPE_SRCS, - ), - headers = glob( - ["*.h"], - exclude = ROCKSDB_HEADERS + SQLITE_HEADERS + CONTEXT_HEADERS + BACKING_STORE_INF + FILTERED_BACKING_STORE_HEADERS + BACKING_STORE_TYPE_INF, - ), - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:bug", - "//eden/common/utils:process_info_cache", - "//eden/common/utils:throw", - "//eden/fs/model/git:git", - "//eden/fs/model/git:gitignore", - "//eden/fs/telemetry:log_info", - "//eden/fs/telemetry:task_trace", - "//eden/fs/utils:eden_error", - "//folly:conv", - "//folly:exception_wrapper", - "//folly:portability", - "//folly:string", - "//folly:varint", - "//folly/io:iobuf", - "//folly/lang:bits", - ], - exported_deps = [ - "fbsource//third-party/googletest:gtest_headers", - ":backing_store_interface", - ":context", - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/common/utils:ref_ptr", - "//eden/common/utils:utils", - "//eden/fs/config:config", - "//eden/fs/journal:journal", - "//eden/fs/model:model", - "//eden/fs/model:model-fwd", - "//eden/fs/service:thrift-cpp2-types", - "//eden/fs/telemetry:stats", - "//folly:cancellation_token", - "//folly:executor", - "//folly:intrusive_list", - "//folly:map_util", - "//folly:range", - "//folly:synchronized", - "//folly/container:evicting_cache_map", - "//folly/container:f14_hash", - "//folly/futures:core", - "//folly/futures:shared_promise", - "//folly/logging:logging", - "//folly/synchronization:distributed_mutex", - ], -) diff --git a/eden/fs/store/facebook/http/TARGETS b/eden/fs/store/facebook/http/TARGETS deleted file mode 100644 index 161a286496265..0000000000000 --- a/eden/fs/store/facebook/http/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "http", - srcs = ["HttpBackingStore.cpp"], - headers = ["HttpBackingStore.h"], - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "//eden/fs/model:model", - "//folly/coro:future_util", - "//folly/coro:task", - "//folly/io/async:event_base_manager", - "//folly/json:dynamic", - "//proxygen/facebook/lib/experimental/coro/client:http_client_lib", - ], - exported_deps = [ - "//eden/fs/store:backing_store_interface", - ], -) diff --git a/eden/fs/store/facebook/recas/TARGETS b/eden/fs/store/facebook/recas/TARGETS deleted file mode 100644 index fda33222fb61c..0000000000000 --- a/eden/fs/store/facebook/recas/TARGETS +++ /dev/null @@ -1,49 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "recas", - srcs = ["ReCasBackingStore.cpp"], - headers = ["ReCasBackingStore.h"], - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "fbsource//third-party/fmt:fmt", - ":recas-digest-util", - "//eden/fs/model:model", - "//eden/fs/store:store", - "//folly:range", - "//folly/coro:future_util", - "//folly/coro:task", - "//folly/futures:core", - "//remote_execution/cas/daemon:cas-daemon-lib", - "//remote_execution/client_lib/cpp:constants", - "//remote_execution/lib/if:common-cpp2-types", - ], - exported_deps = [ - "fbsource//third-party/googletest:gtest_headers", - "//eden/common/utils:path", - "//eden/fs/store:backing_store_interface", - "//remote_execution/lib/cpp:cas_daemon_client_builder", - "//remote_execution/lib/cpp:prod_config_init", - "//remote_execution/lib/if/cas:cas-daemon-service-cpp2-types", - ], -) - -cpp_library( - name = "recas-digest-util", - srcs = ["ReCasDigestUtil.cpp"], - headers = ["ReCasDigestUtil.h"], - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "fbsource//third-party/fmt:fmt", - ], - exported_deps = [ - "//eden/fs/model:model", - "//remote_execution/lib/if:common-cpp2-types", - ], -) diff --git a/eden/fs/store/facebook/recas/test/TARGETS b/eden/fs/store/facebook/recas/test/TARGETS deleted file mode 100644 index 0e89c8d4e98e9..0000000000000 --- a/eden/fs/store/facebook/recas/test/TARGETS +++ /dev/null @@ -1,70 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "recas-backing-store-test", - srcs = ["ReCasBackingStoreTest.cpp"], - compatible_with = [ - "ovr_config//os:linux", - ], - env = {"RE_TEST": "1"}, - deps = [ - "//common/files:files", - "//eden/common/utils:utils", - "//eden/fs/model:model", - "//eden/fs/model:testutil", - "//eden/fs/store/facebook/recas:recas", - "//eden/fs/store/facebook/recas:recas-digest-util", - "//folly/coro:gmock_helpers", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//remote_execution/cas/client:cas-client", - "//remote_execution/cas/client:cas-client-interface", - "//remote_execution/cas/client:cas-digest-tracker", - "//remote_execution/cas/client:stubs-manager", - "//remote_execution/cas/client:stubs-resolver", - "//remote_execution/cas/daemon:cas-daemon-lib", - "//remote_execution/cas/daemon:test-cas-daemon-builder", - "//remote_execution/lib/cpp:cas_daemon_client_builder", - "//remote_execution/lib/cpp:icounters", - "//remote_execution/lib/cpp:noop-monitoring", - "//remote_execution/lib/if:common-cpp2-types", - ], -) - -cpp_unittest( - name = "recas-digest-util-test", - srcs = ["ReCasDigestUtilTest.cpp"], - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "//eden/fs/store/facebook/recas:recas-digest-util", - "//folly/portability:gtest", - "//remote_execution/lib/if:common-cpp2-types", - ], -) - -cpp_binary( - name = "integration", - srcs = ["ReCasBackingStoreIntegrationTest.cpp"], - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "fbsource//xplat/common/random:random_string", - "//common/files:files", - "//eden/fs/model:model", - "//eden/fs/model:testutil", - "//eden/fs/store/facebook/recas:recas", - "//eden/fs/store/facebook/recas:recas-digest-util", - "//folly/init:init", - "//folly/portability:gtest", - "//folly/testing:test_util", - "//remote_execution/cas/daemon:cas-daemon-lib", - "//remote_execution/client_lib/cpp:constants", - "//remote_execution/lib/if:common-cpp2-types", - ], -) diff --git a/eden/fs/store/filter/TARGETS b/eden/fs/store/filter/TARGETS deleted file mode 100644 index cd5f1f98fc348..0000000000000 --- a/eden/fs/store/filter/TARGETS +++ /dev/null @@ -1,77 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "filtered_object_id", - srcs = ["FilteredObjectId.cpp"], - headers = ["FilteredObjectId.h"], - deps = [ - "fbcode//eden/common/utils:enum", - "fbcode//eden/common/utils:throw", - "fbcode//eden/fs/store:backing_store_interface", - "fbcode//folly:varint", - "fbcode//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/model:model", - ], -) - -cpp_library( - name = "filters", - headers = [ - "Filter.h", - ], - exported_deps = [ - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//folly:range", - ], -) - -cpp_library( - name = "glob_filter", - srcs = ["GlobFilter.cpp"], - headers = ["GlobFilter.h"], - deps = [ - "//eden/common/utils:immediate_future", - ], - exported_deps = [ - ":filters", - "//eden/common/utils:case_sensitivity", - "//eden/fs/utils:eden_error", - "//eden/scm/lib/edenfs_ffi:edenfs_ffi", # @manual - "//eden/scm/lib/edenfs_ffi:edenfs_ffi-wrapper", # @manual - "//eden/scm/lib/edenfs_ffi:edenfs_ffi@header", # @manual - ], -) - -cpp_library( - name = "hg_sparse_filter", - srcs = ["HgSparseFilter.cpp"], - headers = ["HgSparseFilter.h"], - os_deps = [ - ( - "windows", - ["fbsource//third-party/rust:cxx"], - ), - ], - preferred_linkage = "static", - undefined_symbols = True, - deps = [ - "//eden/fs/model:model", - "//eden/fs/service:thrift_util", - "//folly/futures:core", - ], - exported_deps = [ - "fbsource//third-party/rust:cxx-core", - ":filters", - "//eden/scm/lib/edenfs_ffi:edenfs_ffi", # @manual - "//eden/scm/lib/edenfs_ffi:edenfs_ffi-wrapper", - "//eden/scm/lib/edenfs_ffi:edenfs_ffi@header", # @manual - "//folly/container:f14_hash", - "//folly/logging:logging", - ], -) diff --git a/eden/fs/store/filter/test/TARGETS b/eden/fs/store/filter/test/TARGETS deleted file mode 100644 index 4c25d4f06de8c..0000000000000 --- a/eden/fs/store/filter/test/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - supports_static_listing = False, - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:path", - "//eden/common/utils:process_info_cache", - "//eden/fs/config:config", - "//eden/fs/model:model", - "//eden/fs/store:backing_store_interface", - "//eden/fs/store:store", - "//eden/fs/store/filter:filtered_object_id", - "//eden/fs/store/filter:glob_filter", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//folly:range", - "//folly/executors:manual_executor", - "//folly/logging:logging", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/store/git/TARGETS b/eden/fs/store/git/TARGETS deleted file mode 100644 index b52215ebda110..0000000000000 --- a/eden/fs/store/git/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "git", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - compatible_with = [ - "ovr_config//os:linux", - ], - deps = [ - "//eden/common/utils:enum", - "//eden/common/utils:throw", - "//eden/fs/model/git:git", - "//eden/fs/model:model", - "//eden/fs/service:thrift_util", - "//folly/futures:core", - "//folly/logging:logging", - "//folly:conv", - "//folly:string", - # TODO(T168360028): This dependency comes from third-party/rust/BUCK - # which includes a bunch of buck-built libgit2 targets for each - # platform. We are only using Linux for now. See task for the real fix. - "fbsource//third-party/rust:libgit2-sys-0.13.4+1.4.2-libgit2-linux", # @manual - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/store:backing_store_interface", - "//eden/fs/store:context", - "//folly:range", - ], -) diff --git a/eden/fs/store/hg/TARGETS b/eden/fs/store/hg/TARGETS deleted file mode 100644 index 45fb3c5bb294b..0000000000000 --- a/eden/fs/store/hg/TARGETS +++ /dev/null @@ -1,119 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "sapling_import_request", - srcs = ["SaplingImportRequest.cpp"], - headers = ["SaplingImportRequest.h"], - deps = [ - "//folly:try", - ], - exported_deps = [ - ":hg_proxy_hash", - "//eden/common/telemetry:telemetry", - "//eden/common/utils:bug", - "//eden/common/utils:utils", - "//eden/fs/model:model", - "//eden/fs/model:model-fwd", - "//eden/fs/store:context", - "//folly/futures:core", - ], -) - -cpp_library( - name = "sapling_import_request_queue", - srcs = ["SaplingImportRequestQueue.cpp"], - headers = ["SaplingImportRequestQueue.h"], - deps = [ - "//eden/common/utils:immediate_future", - "//eden/fs/config:config", - "//folly:map_util", - ], - exported_deps = [ - ":sapling_import_request", - "//eden/fs/model:model", - "//folly:synchronized", - "//folly:try", - "//folly/container:f14_hash", - ], -) - -cpp_library( - name = "sapling_backing_store", - srcs = ["SaplingBackingStore.cpp"], - headers = ["SaplingBackingStore.h"], - deps = [ - ":hg_proxy_hash", - ":sapling_import_request", - "//common/fb303/cpp:thread_pool_executor_counters", # @manual - "//common/network:hostname", - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:bug", - "//eden/common/utils:enum", - "//eden/common/utils:fault_injector", - "//eden/common/utils:path", - "//eden/common/utils:throw", - "//eden/common/utils:utils", - "//eden/fs/config:config", - "//eden/fs/service:thrift_util", - "//eden/fs/telemetry:log_info", - "//eden/fs/telemetry:stats", - "//eden/fs/utils:static_assert", - "//folly:executor", - "//folly:string", - "//folly/executors:cpu_thread_pool_executor", - "//folly/executors/task_queue:unbounded_blocking_queue", - "//folly/executors/thread_factory:init_thread_factory", - "//folly/futures:core", - "//folly/logging:logging", - "//folly/portability:gflags", - "//folly/system:thread_name", - ], - exported_deps = [ - "fbsource//third-party/googletest:gtest_headers", - ":sapling_backing_store_options", - ":sapling_import_request_queue", - "//eden/common/telemetry:telemetry", - "//eden/common/utils:ref_ptr", - "//eden/fs:config", - "//eden/fs/model:model", - "//eden/fs/store:backing_store_interface", - "//eden/fs/store:context", - "//eden/fs/store:store", - "//eden/fs/telemetry:activity_buffer", - "//eden/scm/lib/backingstore:backingstore", # @manual - "//eden/scm/lib/backingstore:backingstore@header", # @manual - "//eden/scm/lib/backingstore:sapling_native_backingstore", - "//folly:range", - "//folly:synchronized", - "//monitoring/obc:obc_lib", - ], - external_deps = [ - "re2", - ], -) - -cpp_library( - name = "sapling_backing_store_options", - headers = ["SaplingBackingStoreOptions.h"], -) - -cpp_library( - name = "hg_proxy_hash", - srcs = ["HgProxyHash.cpp"], - headers = ["HgProxyHash.h"], - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/utils:bug", - "//eden/common/utils:throw", - "//eden/fs/telemetry:stats", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/config:config", - "//eden/fs/model:model", - "//eden/fs/store:store", - ], -) diff --git a/eden/fs/store/hg/test/TARGETS b/eden/fs/store/hg/test/TARGETS deleted file mode 100644 index 7ae3b3f46038d..0000000000000 --- a/eden/fs/store/hg/test/TARGETS +++ /dev/null @@ -1,70 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob( - ["*Test.cpp"], - ), - args = [ - # Require all tests to set hgPath and not default to system hg. - "--hgPath", - "false", - ], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - env = { - "EDEN_HG_BINARY": "$(location //scm/telemetry/hg:hg)", - "HGEXECUTABLEPATH": "$(location //eden/scm:hg)", - "HG_REAL_BIN": "$(location //eden/scm:hg)", - }, - supports_static_listing = False, - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/telemetry:telemetry", - "//eden/common/utils:fault_injector", - "//eden/common/utils:path", - "//eden/common/utils:utils", - "//eden/fs/config:config", - "//eden/fs/model:model", - "//eden/fs/model:testutil", - "//eden/fs/store:context", - "//eden/fs/store:store", - "//eden/fs/store/hg:hg_proxy_hash", - "//eden/fs/store/hg:sapling_backing_store", - "//eden/fs/store/hg:sapling_backing_store_options", - "//eden/fs/store/hg:sapling_import_request", - "//eden/fs/store/hg:sapling_import_request_queue", - "//eden/fs/telemetry:stats", - "//eden/fs/testharness:hg_repo", - "//eden/fs/testharness:test_config_source", - "//folly:range", - "//folly:try", - "//folly/executors:cpu_thread_pool_executor", - "//folly/logging:logging", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/testing:test_util", - ], -) - -cpp_benchmark( - name = "bench", - srcs = glob(["*Benchmark.cpp"]), - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/utils:utils", - "//eden/common/utils/benchharness:benchharness", - "//eden/fs/config:config", - "//eden/fs/store:context", - "//eden/fs/store/hg:sapling_import_request", - "//eden/fs/store/hg:sapling_import_request_queue", - ], -) diff --git a/eden/fs/store/test/TARGETS b/eden/fs/store/test/TARGETS deleted file mode 100644 index c40acea0d341f..0000000000000 --- a/eden/fs/store/test/TARGETS +++ /dev/null @@ -1,125 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_library( - name = "local_store_test", - headers = ["LocalStoreTest.h"], - exported_deps = [ - "//eden/common/testharness:temp_file", - "//eden/common/utils:fault_injector", - "//eden/fs/model:model", - "//eden/fs/store:store", - "//folly/io:iobuf", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "filtered_backing_store_test", - srcs = [ - "FilteredBackingStoreTest.cpp", - ], - # TODO(T159481899): make HgRepo compile/run on Windows - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - supports_static_listing = False, - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:fault_injector", - "//eden/common/utils:path", - "//eden/fs/config:config", - "//eden/fs/model:testutil", - "//eden/fs/store:filtered_backing_store", - "//eden/fs/store:store", - "//eden/fs/store/filter:hg_sparse_filter", - "//eden/fs/store/hg:sapling_backing_store", - "//eden/fs/store/hg:sapling_backing_store_options", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:fake_filter", - "//eden/fs/testharness:hg_repo", - "//eden/fs/testharness:test_util", - "//folly:varint", - "//folly/executors:manual_executor", - "//folly/io:iobuf", - "//folly/portability:gtest", - "//folly/test:test_utils", - "//folly/testing:test_util", - ], -) - -cpp_unittest( - name = "test", - srcs = [ - "BlobAccessTest.cpp", - "BlobCacheTest.cpp", - "DiffTest.cpp", - "ImportPriorityTest.cpp", - "LocalStoreTest.cpp", - "ObjectCacheTest.cpp", - "ObjectStoreTest.cpp", - "RocksDbLocalStoreTest.cpp", - "ScmStatusCacheTest.cpp", - "TreeCacheTest.cpp", - "TreeTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/testharness:temp_file", - "//eden/common/utils:fault_injector", - "//eden/common/utils:immediate_future", - "//eden/common/utils:path", - "//eden/common/utils:process_info_cache", - "//eden/fs/config:config", - "//eden/fs/journal:journal", - "//eden/fs/model:model", - "//eden/fs/model:testutil", - "//eden/fs/model/git:gitignore", - "//eden/fs/service:thrift-cpp2-types", - "//eden/fs/store:context", - "//eden/fs/store:rocksdb", - "//eden/fs/store:sqlite", - "//eden/fs/store:store", - "//eden/fs/telemetry:stats", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:logging_fetch_context", - "//eden/fs/testharness:stored_object", - "//eden/fs/testharness:test_util", - "//eden/fs/utils:static_assert", - "//folly/executors:manual_executor", - "//folly/io:iobuf", - "//folly/logging:logging", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) - -cpp_binary( - name = "object_cache_benchmark", - srcs = ["ObjectCacheBench.cpp"], - deps = [ - "//eden/common/utils/benchharness:benchharness", - "//eden/fs/store:store", - ], -) - -cpp_binary( - name = "rocksdb_benchmark", - srcs = ["RocksDbLocalStoreBench.cpp"], - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/testharness:temp_file", - "//eden/common/utils:fault_injector", - "//eden/common/utils/benchharness:benchharness", - "//eden/fs/config:config", - "//eden/fs/model:model", - "//eden/fs/store:rocksdb", - "//eden/fs/telemetry:stats", - ], -) diff --git a/eden/fs/takeover/TARGETS b/eden/fs/takeover/TARGETS deleted file mode 100644 index 130314af02cc0..0000000000000 --- a/eden/fs/takeover/TARGETS +++ /dev/null @@ -1,52 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_client_infra") - -thrift_library( - name = "serialization", - languages = [ - "cpp2", - ], - no_plugin_deps = [ - "//thrift/annotation:cpp", - "//thrift/annotation:hack", - "//thrift/annotation:java", - "//thrift/annotation:python", - ], - py_base_module = "facebook.eden", - thrift_srcs = { - "takeover.thrift": [], - }, -) - -cpp_library( - name = "takeover", - srcs = glob(["*.cpp"]), - headers = glob(["*.h"]), - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/utils:bug", - "//eden/common/utils:throw", - "//eden/fs/utils:event_base_state", - "//folly:file_util", - "//folly:likely", - "//folly:network_address", - "//folly:range", - "//folly/io/async:async_base", - "//folly/logging:logging", - "//thrift/lib/cpp2/protocol:protocol", - ], - exported_deps = [ - ":serialization-cpp2-types", - "//eden/common/utils:fault_injector", - "//eden/common/utils:io", - "//eden/common/utils:path", - "//eden/fs/config:config", - "//eden/fs/utils:fs_channel_types", - "//folly:file", - "//folly/futures:core", - "//folly/io:iobuf", - "//folly/io/async:server_socket", - ], -) diff --git a/eden/fs/takeover/test/TARGETS b/eden/fs/takeover/test/TARGETS deleted file mode 100644 index 9a10abe5fec74..0000000000000 --- a/eden/fs/takeover/test/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "test", - srcs = glob(["*Test.cpp"]), - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/fs/takeover:serialization-cpp2-types", - "//eden/fs/takeover:takeover", - "//folly:exception", - "//folly/futures:core", - "//folly/portability:gmock", - "//folly/portability:gtest", - "//folly/test:test_utils", - "//folly/testing:test_util", - ], -) diff --git a/eden/fs/telemetry/TARGETS b/eden/fs/telemetry/TARGETS deleted file mode 100644 index 805ef38a1ea3a..0000000000000 --- a/eden/fs/telemetry/TARGETS +++ /dev/null @@ -1,133 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "stats", - srcs = [ - "EdenStats.cpp", - ], - headers = [ - "EdenStats.h", - ], - exported_deps = [ - "//eden/common/telemetry:structured_logger_factory", - "//eden/common/telemetry:telemetry", - "//eden/common/utils:ref_ptr", - "//eden/fs:config", - "//folly:thread_local", - ], -) - -cpp_library( - name = "task_trace", - srcs = [ - "TaskTrace.cpp", - ], - headers = [ - "TaskTrace.h", - ], - deps = [ - "//folly/system:thread_id", - "//folly/system:thread_name", - ], - exported_deps = [ - "//eden/common/telemetry:telemetry", - ], -) - -cpp_library( - name = "file_access_structured_logger", - srcs = [ - "FileAccessStructuredLogger.cpp", - ], - headers = [ - "FileAccessStructuredLogger.h", - ], - exported_deps = [ - ":structured_logger", - "//eden/common/telemetry:log_info", - "//eden/common/telemetry:scribe_logger", - ], -) - -cpp_library( - name = "scribe_logger", - headers = [ - "IScribeLogger.h", - ], - exported_deps = [ - "//eden/common/telemetry:log_info", - "//eden/common/utils:path", - "//eden/fs/config:config", - "//eden/fs/inodes:inode_number", - "//eden/fs/store:context", - ], -) - -cpp_library( - name = "activity_recorder", - headers = [ - "IActivityRecorder.h", - ], - exported_deps = [ - "//eden/common/utils:path", - ], -) - -cpp_library( - name = "fs_event_logger", - srcs = [ - "FsEventLogger.cpp", - ], - headers = [ - "FsEventLogger.h", - ], - deps = [ - ":scribe_logger", - "//eden/fs/config:config", - "//folly:random", - ], - exported_deps = [ - "//folly:range", - "//folly:synchronized", - ], -) - -cpp_library( - name = "log_info", - headers = [ - "LogEvent.h", - ], - exported_deps = [ - "//eden/common/os:os", - "//eden/common/telemetry:log_info", - "//folly/portability:sys_types", - ], -) - -cpp_library( - name = "activity_buffer", - headers = [ - "ActivityBuffer.h", - ], - exported_deps = [ - "//eden/fs/utils:ring_buffer", - "//folly:synchronized", - ], -) - -cpp_library( - name = "structured_logger", - srcs = [ - "EdenStructuredLogger.cpp", - ], - headers = [ - "EdenStructuredLogger.h", - ], - exported_deps = [ - "//eden/common/telemetry:log_info", - "//eden/common/telemetry:scribe_logger", - "//eden/common/telemetry:structured_logger", - ], -) diff --git a/eden/fs/telemetry/facebook/TARGETS b/eden/fs/telemetry/facebook/TARGETS deleted file mode 100644 index c089bba821763..0000000000000 --- a/eden/fs/telemetry/facebook/TARGETS +++ /dev/null @@ -1,86 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "scribe_logger", - srcs = ["ScribeLogger.cpp"], - headers = ["ScribeLogger.h"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/fs/config:config", - "//eden/fs/inodes:inodes", - "//eden/fs/store:store", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/fs/telemetry:scribe_logger", - "//folly/synchronization:lifo_sem", - "//rfe/scubadata:scubadata", - "//scribe/api/producer:local_producer", - ], -) - -cpp_library( - name = "activity_recorder", - srcs = ["ActivityRecorder.cpp"], - headers = ["ActivityRecorder.h"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/utils:bug", - "//eden/common/utils:path", - "//eden/fs/config:config", - "//eden/fs/inodes:inodes", - "//fb303:service_data", - "//fb303/detail:quantile_stat_wrappers", - "//folly:file_util", - "//folly:range", - "//folly/logging:logging", - "//folly/portability:time", - "//folly/system:thread_name", - ], - exported_deps = [ - "//eden/fs/fuse:fuse", - "//eden/fs/nfs:nfsd3", - "//eden/fs/telemetry:activity_recorder", - "//folly:file", - "//folly:producer_consumer_queue", - "//folly/synchronization:lifo_sem", - ], - external_deps = [ - ("boost", None, "boost_system"), - ], -) - -cpp_library( - name = "logview_util", - srcs = [ - "EdenLogviewFormatter.cpp", - "EdenLogviewHandlerFactory.cpp", - "EdenLogviewWriter.cpp", - ], - headers = [ - "EdenLogviewFormatter.h", - "EdenLogviewHandlerFactory.h", - "EdenLogviewWriter.h", - ], - deps = [ - "//common/base:build_info", - "//common/network:hostname", - "//common/network:util", - "//eden/fs/telemetry:scribe_logger", - "//folly/logging:log_level", - "//thrift/lib/cpp2/protocol:protocol", - ], - exported_deps = [ - "//eden/fs/telemetry/facebook/if:eden_logview-cpp2-types", - "//folly/logging:log_handler", - "//folly/logging:logging", - ], -) diff --git a/eden/fs/telemetry/facebook/if/TARGETS b/eden/fs/telemetry/facebook/if/TARGETS deleted file mode 100644 index 448675bd8cded..0000000000000 --- a/eden/fs/telemetry/facebook/if/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_client_infra") - -thrift_library( - name = "eden_logview", - languages = [ - "cpp2", - "py-deprecated", - ], - py_base_module = "eden", - thrift_cpp2_options = "json", - thrift_srcs = { - "EdenLogview.thrift": None, - }, -) diff --git a/eden/fs/telemetry/test/TARGETS b/eden/fs/telemetry/test/TARGETS deleted file mode 100644 index c328756cdc236..0000000000000 --- a/eden/fs/telemetry/test/TARGETS +++ /dev/null @@ -1,77 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "task_trace_test", - srcs = [ - "TaskTraceTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//eden/fs/telemetry:task_trace", - "//folly/futures:core", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "activity_buffer_test", - srcs = [ - "ActivityBufferTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//eden/fs/telemetry:activity_buffer", - "//folly/portability:gtest", - ], -) - -cpp_benchmark( - name = "activity_buffer_benchmark", - srcs = [ - "ActivityBufferBenchmark.cpp", - ], - deps = [ - "//eden/common/utils:process", - "//folly:exception", - "//folly:file", - "//folly:stop_watch", - "//folly/init:init", - "//folly/portability:gflags", - ], -) - -cpp_benchmark( - name = "bench", - srcs = glob( - ["*Benchmark.cpp"], - exclude = [ - "ActivityBufferBenchmark.cpp", - ], - ), - deps = [ - "fbsource//third-party/benchmark:benchmark", - "//eden/common/telemetry:telemetry", - "//eden/common/utils/benchharness:benchharness", - "//folly/init:init", - "//folly/synchronization/test:barrier", - ], -) - -cpp_unittest( - name = "scuba_test", - srcs = [ - "EdenStructuredLoggerTest.cpp", - ], - supports_static_listing = False, - deps = [ - "//eden/common/telemetry:log_info", - "//eden/common/telemetry:scribe_logger", - "//eden/fs/telemetry:structured_logger", - "//folly/json:dynamic", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) diff --git a/eden/fs/testharness/TARGETS b/eden/fs/testharness/TARGETS deleted file mode 100644 index c9b5bdee0f60f..0000000000000 --- a/eden/fs/testharness/TARGETS +++ /dev/null @@ -1,313 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "test_mount", - srcs = [ - "TestMount.cpp", - ], - headers = [ - "TestMount.h", - ], - deps = [ - ":fake_backing_store_and_tree_builder", - ":fake_fuse", - ":fake_privhelper", - ":test_config_source", - ":test_util", - "//eden/common/telemetry:structured_logger", - "//eden/common/testharness:temp_file", - "//eden/common/utils:file_utils", - "//eden/common/utils:process_info_cache", - "//eden/common/utils:user_info", - "//eden/common/utils:utils", - "//eden/fs/config:config", - "//eden/fs/journal:journal", - "//eden/fs/notifications:command_notifier", - "//eden/fs/service:pretty_printers", - "//eden/fs/store:backing_store_interface", - "//eden/fs/store:store", - "//eden/fs/telemetry:scribe_logger", - "//eden/fs/telemetry:stats", - "//eden/fs/utils:eden_error", - "//folly:file_util", - "//folly/io:iobuf", - "//folly/logging:logging", - "//folly/portability:gflags", - "//folly/portability:gtest", - "//folly/testing:test_util", - ], - exported_deps = [ - ":fake_clock", - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:path", - "//eden/fs/fuse:fuse", - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes:inodes", - "//eden/fs/inodes/overlay:serialization-cpp2-types", - "//eden/fs/model:model", - "//folly:portability", - "//folly:range", - "//folly/executors:manual_executor", - ], -) - -cpp_library( - name = "test_util", - srcs = ["TestUtil.cpp"], - headers = ["TestUtil.h"], - deps = [ - "//eden/fs/model:model", - ], - exported_deps = [ - "//eden/fs/inodes:inode_number", - "//eden/fs/inodes:inodes", - "//eden/fs/service:thrift-cpp2-types", - "//folly:range", - "//folly/concurrency:unbounded_queue", - ], -) - -cpp_library( - name = "test_config_source", - srcs = ["TestConfigSource.cpp"], - headers = ["TestConfigSource.h"], - deps = [ - "//folly:map_util", - ], - exported_deps = [ - "//eden/fs/config:config", - "//folly:synchronized", - ], -) - -cpp_library( - name = "fake_clock", - headers = ["FakeClock.h"], - exported_deps = [ - "//eden/fs/utils:clock", - "//folly/chrono:conv", - ], -) - -cpp_library( - name = "test_checks", - headers = ["TestChecks.h"], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/fs/inodes:inodes", - "//eden/fs/store:context", - "//folly:range", - "//folly/io:iobuf", - "//folly/portability:gtest", - ], -) - -cpp_library( - name = "fake_fuse", - srcs = ["FakeFuse.cpp"], - headers = ["FakeFuse.h"], - deps = [ - "//folly:exception", - "//folly:file_util", - "//folly/chrono:conv", - "//folly/logging:logging", - "//folly/portability:sockets", - ], - exported_deps = [ - "//eden/fs/utils:fs_channel_types", - "//folly:file", - "//folly:range", - ], -) - -cpp_library( - name = "test_dispatcher", - srcs = ["TestDispatcher.cpp"], - headers = ["TestDispatcher.h"], - deps = [ - "//folly:conv", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/fuse:fuse", - "//eden/fs/store:store", - "//folly:synchronized", - "//folly/futures:core", - ], -) - -cpp_library( - name = "fake_privhelper", - srcs = ["FakePrivHelper.cpp"], - headers = ["FakePrivHelper.h"], - deps = [ - ":fake_fuse", - "//eden/fs/utils:eden_error", - "//folly:file", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/privhelper:interface", - "//folly/futures:core", - ], -) - -cpp_library( - name = "logging_fetch_context", - headers = ["LoggingFetchContext.h"], - exported_deps = [ - "//eden/fs/store:store", - ], -) - -cpp_library( - name = "stored_object", - headers = ["StoredObject.h"], - exported_deps = [ - "//eden/common/utils:immediate_future", - ], -) - -cpp_library( - name = "fake_backing_store_and_tree_builder", - srcs = [ - "FakeBackingStore.cpp", - "FakeTreeBuilder.cpp", - ], - headers = [ - "FakeBackingStore.h", - "FakeTreeBuilder.h", - ], - deps = [ - "fbsource//third-party/fmt:fmt", - ":test_util", - "//eden/common/utils:enum", - "//eden/common/utils:fault_injector", - "//eden/fs/inodes:inodes", - "//folly:map_util", - "//folly/futures:core", - "//folly/logging:logging", - "//folly/ssl:openssl_hash", - ], - exported_deps = [ - "fbsource//third-party/googletest:gtest_headers", - ":stored_object", - "//eden/common/utils:path", - "//eden/common/utils:utils", - "//eden/fs/model:model", - "//eden/fs/store:backing_store_interface", - "//eden/fs/store:context", - "//folly:exception_wrapper", - "//folly:range", - ], -) - -cpp_library( - name = "fake_object_store", - srcs = ["FakeObjectStore.cpp"], - headers = ["FakeObjectStore.h"], - deps = [ - "//eden/common/utils:immediate_future", - "//folly:map_util", - "//folly/futures:core", - ], - exported_deps = [ - "//eden/fs/model:model", - "//eden/fs/store:context", - "//eden/fs/store:store", - ], -) - -cpp_library( - name = "fake_filter", - headers = ["FakeFilter.h"], - exported_deps = [ - "//eden/fs/store/filter:filters", - ], -) - -cpp_library( - name = "hg_repo", - srcs = [ - "HgBinary.cpp", - "HgRepo.cpp", - ], - headers = [ - "HgBinary.h", - "HgRepo.h", - ], - deps = [ - "//eden/common/utils:file_utils", - "//folly:exception", - "//folly:file", - "//folly:file_util", - "//folly:portability", - "//folly:range", - "//folly:string", - "//folly/logging:logging", - "//folly/portability:unistd", - "//folly/portability:windows", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/common/utils:process", - "//eden/fs/model:model", - "//folly/portability:gflags", - ], -) - -cpp_library( - name = "test_server", - srcs = ["TestServer.cpp"], - headers = ["TestServer.h"], - deps = [ - ":fake_privhelper", - "//eden/common/telemetry:log_info", - "//eden/common/testharness:temp_file", - "//eden/common/utils:user_info", - "//eden/fs/config:config", - "//eden/fs/service:server", - "//eden/fs/service:startup_logger", - "//eden/fs/store:backing_store_interface", - "//eden/fs/telemetry:activity_recorder", - "//eden/fs/telemetry:scribe_logger", - "//folly/portability:gflags", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/service:startup_status_subscriber", - "//folly/testing:test_util", - ], -) - -cpp_library( - name = "inode_unloader", - headers = ["InodeUnloader.h"], - exported_deps = [ - "//eden/fs/inodes:inodes", - "//folly/portability:gtest", - ], -) - -cpp_library( - name = "test_server_state", - srcs = ["TestServerState.cpp"], - headers = ["TestServerState.h"], - deps = [ - ":fake_clock", - ":fake_privhelper", - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:process_info_cache", - "//eden/common/utils:user_info", - "//eden/common/utils:utils", - "//eden/fs/config:config", - "//eden/fs/inodes:inodes", - "//eden/fs/notifications:command_notifier", - "//eden/fs/telemetry:scribe_logger", - "//eden/fs/telemetry:stats", - "//folly/executors:manual_executor", - ], -) diff --git a/eden/fs/testharness/test/TARGETS b/eden/fs/testharness/test/TARGETS deleted file mode 100644 index a52f0b4a8e79d..0000000000000 --- a/eden/fs/testharness/test/TARGETS +++ /dev/null @@ -1,76 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "fake_backing_store_test", - srcs = ["FakeBackingStoreTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/utils:path", - "//eden/fs/model:testutil", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_util", - "//folly/executors:manual_executor", - "//folly/io:iobuf", - "//folly/portability:gtest", - "//folly/test:test_utils", - "//folly/testing:test_util", - ], -) - -cpp_unittest( - name = "fake_object_store_test", - srcs = ["FakeObjectStoreTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/utils:immediate_future", - "//eden/fs/model:model", - "//eden/fs/model:testutil", - "//eden/fs/testharness:fake_object_store", - "//folly/futures:core", - "//folly/io:iobuf", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "test_mount_test", - srcs = ["TestMountTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/inodes:inodes", - "//eden/fs/model:model", - "//eden/fs/model:testutil", - "//eden/fs/testharness:fake_backing_store_and_tree_builder", - "//eden/fs/testharness:test_mount", - "//folly:range", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "test_server_test", - srcs = ["TestServerTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/service:server", - "//eden/fs/testharness:test_server", - "//folly/io/async:async_base", - "//folly/portability:gtest", - "//thrift/lib/cpp2:server", - ], -) - -cpp_unittest( - name = "test_util_test", - srcs = ["TestUtilTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/model:model", - "//eden/fs/model:testutil", - "//eden/fs/testharness:test_util", - "//folly/portability:gtest", - "//folly/test:test_utils", - ], -) diff --git a/eden/fs/third-party/TARGETS b/eden/fs/third-party/TARGETS deleted file mode 100644 index 7882477d3957f..0000000000000 --- a/eden/fs/third-party/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "fuse_kernel", - # TODO: conditionally pull in fuse_kernel_macos.h here on macos - headers = [ - "fuse_kernel_linux.h", - "fuse_kernel_osxfuse.h", - ], -) diff --git a/eden/fs/utils/TARGETS b/eden/fs/utils/TARGETS deleted file mode 100644 index 4b0db676ff1ac..0000000000000 --- a/eden/fs/utils/TARGETS +++ /dev/null @@ -1,306 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("scm_client_infra") - -cpp_library( - name = "event_base_state", - headers = ["EventBaseState.h"], - exported_deps = [ - "//folly/io/async:async_base", - ], -) - -cpp_library( - name = "eden_task_queue", - srcs = [ - "EdenTaskQueue.cpp", - ], - headers = [ - "EdenTaskQueue.h", - ], - exported_deps = [ - "//folly/concurrency:dynamic_bounded_queue", - "//folly/executors:cpu_thread_pool_executor", - ], -) - -cpp_library( - name = "win_stacktrace", - srcs = [ - "WinStackTrace.cpp", - ], - headers = [ - "WinStackTrace.h", - ], - os_deps = [ - ( - "windows", - ["fbsource//third-party/toolchains/win:dbghelp.lib"], - ), - ], - deps = [ - "//eden/common/utils:path", - "//eden/common/utils:stringconv", - "//eden/common/utils:win_error", - "//folly:c_portability", - "//folly/portability:windows", - ], -) - -cpp_library( - name = "bufvec", - headers = [ - "BufVec.h", - ], - exported_deps = [ - "//folly/io:iobuf", - ], -) - -cpp_library( - name = "matcher", - srcs = [ - "GlobMatcher.cpp", - ], - headers = [ - "GlobMatcher.h", - ], - deps = [ - "fbsource//third-party/fmt:fmt", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/common/utils:case_sensitivity", - "//folly:expected", - ], -) - -cpp_library( - name = "glob", - srcs = [ - "GlobNodeImpl.cpp", - "GlobTree.cpp", - ], - headers = [ - "GlobNodeImpl.h", - "GlobResult.h", - "GlobTree.h", - ], - exported_deps = [ - ":matcher", - "//eden/common/utils:case_sensitivity", - "//eden/common/utils:enum", - "//eden/common/utils:path", - "//eden/common/utils:utils", - "//eden/fs/model:model", - "//eden/fs/store:store", - "//eden/fs/telemetry:task_trace", - "//folly/futures:core", - ], -) - -cpp_library( - name = "eden_error", - srcs = [ - "EdenError.cpp", - ], - headers = [ - "EdenError.h", - "NotImplemented.h", - ], - deps = [ - "//eden/common/utils:system_error", - "//eden/common/utils:win_error", - ], - exported_deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/utils:utf8", - "//eden/fs/service:thrift-cpp2-types", - "//folly:exception_wrapper", - ], -) - -cpp_library( - name = "file_hash", - srcs = [ - "FileHash.cpp", - ], - headers = [ - "FileHash.h", - ], - deps = [ - "//eden/common/utils:win_error", - "//eden/fs/digest:blake3_hash", - "//folly/portability:openssl", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/fs/model:model", - ], -) - -cpp_library( - name = "filter_utils", - srcs = [ - "FilterUtils.cpp", - ], - headers = [ - "FilterUtils.h", - ], - deps = [ - "//eden/common/utils:throw", - "//folly:varint", - "//folly/logging:logging", - ], - exported_deps = [ - "//eden/fs/model:model", - "//folly:range", - ], -) - -cpp_library( - name = "proc_util", - srcs = ["ProcUtil.cpp"], - headers = ["ProcUtil.h"], - deps = [ - "//eden/common/utils:file_utils", - "//folly:conv", - "//folly:file_util", - "//folly:string", - "//folly/logging:logging", - "//folly/portability:unistd", - ], - exported_deps = [ - "//eden/common/utils:path", - "//eden/common/utils:process_info_cache", - "//folly:range", - ], -) - -cpp_library( - name = "process_access_log", - srcs = [ - "ProcessAccessLog.cpp", - ], - headers = [ - "ProcessAccessLog.h", - ], - deps = [ - "//eden/common/utils:process_info_cache", - "//folly:exception", - "//folly:micro_lock", - "//folly:thread_local", - ], - exported_deps = [ - "//eden/common/utils:enum", - "//eden/common/utils:utils", - "//eden/fs/service:thrift-cpp2-types", - "//folly:synchronized", - ], -) - -cpp_library( - name = "ring_buffer", - headers = ["RingBuffer.h"], -) - -cpp_library( - name = "static_assert", - headers = ["StaticAssert.h"], -) - -cpp_library( - name = "dir_type", - srcs = [ - "DirType.cpp", - ], - deps = [ - "//eden/common/utils:utils", - "//eden/fs/service:thrift-cpp2-types", - "//folly:utility", - ], -) - -cpp_library( - name = "chrono", - srcs = [ - "ChronoParse.cpp", - "ChronoUnit.cpp", - ], - deps = [ - "//folly:conv", - "//folly:string", - "//folly/logging:logging", - ], - exported_deps = [ - "//folly:cpp_attributes", - "//folly:expected", - "//folly:portability", - "//folly:range", - ], -) - -cpp_library( - name = "thread", - srcs = ["Thread.cpp"], - external_deps = [ - ("glibc", None, "pthread"), - ], -) - -cpp_library( - name = "clock", - srcs = ["Clock.cpp"], - headers = ["Clock.h"], - deps = [ - "//folly/portability:time", - ], -) - -cpp_library( - name = "nfs_socket", - srcs = ["NfsSocket.cpp"], - headers = ["NfsSocket.h"], - deps = [ - "//folly:exception", - ], - exported_deps = [ - "//eden/common/utils:path", - "//folly:network_address", - ], -) - -cpp_library( - name = "fs_channel_types", - headers = ["FsChannelTypes.h"], - os_deps = [ - ( - "linux", - ["//eden/fs/third-party:fuse_kernel"], - ), - ( - "macos", - ["//eden/fs/third-party:fuse_kernel"], - ), - ], - exported_deps = [ - "//folly:file", - ], -) - -cpp_library( - name = "source_location", - headers = ["SourceLocation.h"], -) - -cpp_library( - name = "projfs_util", - srcs = ["ProjfsUtil.cpp"], - headers = ["ProjfsUtil.h"], - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/utils:file_utils", - "//eden/common/utils:stringconv", - "//folly:try", - ], -) diff --git a/eden/fs/utils/test/TARGETS b/eden/fs/utils/test/TARGETS deleted file mode 100644 index cea05ff90b7a8..0000000000000 --- a/eden/fs/utils/test/TARGETS +++ /dev/null @@ -1,115 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark") -load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest") - -oncall("scm_client_infra") - -cpp_unittest( - name = "chrono", - srcs = ["ChronoTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/utils:chrono", - "//folly:conv", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "chrono_unit", - srcs = ["ChronoUnitTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/utils:chrono", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "proc_util", - srcs = ["ProcUtilTest.cpp"], - env = { - "TEST_DATA": "$(location //eden/fs/utils/test/test-data:test-data)", - }, - supports_static_listing = False, - deps = [ - "//eden/common/utils:path", - "//eden/fs/utils:proc_util", - "//folly:portability", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "process_access_log", - srcs = ["ProcessAccessLogTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/common/utils:process_info_cache", - "//eden/fs/utils:process_access_log", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "ring_buffer", - srcs = ["RingBufferTest.cpp"], - supports_static_listing = False, - deps = [ - "//eden/fs/utils:ring_buffer", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "source_location", - srcs = ["SourceLocationTest.cpp"], - supports_static_listing = False, - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/fs/utils:source_location", - "//folly/portability:gmock", - "//folly/portability:gtest", - ], -) - -cpp_unittest( - name = "glob_test", - srcs = ["GlobMatcherTest.cpp"], - supports_static_listing = False, - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/fs/utils:matcher", - "//folly/portability:gtest", - ], -) - -cpp_benchmark( - name = "bench", - srcs = [ - "ProcessAccessLogBenchmark.cpp", - ], - deps = [ - "fbsource//third-party/benchmark:benchmark", - "//eden/common/utils:process_info_cache", - "//eden/fs/utils:process_access_log", - ], -) - -# This cpp_benchmark() rule depends on a library watchman. -# We disable it on non-Facebook internal builds, just so that the open source -# build doesn't depend on watchman. This is the only thing that requires -# watchman. -cpp_benchmark( - name = "glob_bench_mark", - srcs = ["GlobBenchMark.cpp"], - deps = [ - "fbsource//third-party/benchmark:benchmark", - "//eden/fs/utils:matcher", - "//watchman/thirdparty/wildmatch:wildmatch", - ], - external_deps = [ - "re2", - ], -) diff --git a/eden/fs/utils/test/test-data/TARGETS b/eden/fs/utils/test/test-data/TARGETS deleted file mode 100644 index 52ce4dc06ce13..0000000000000 --- a/eden/fs/utils/test/test-data/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup") - -oncall("scm_client_infra") - -buck_filegroup( - name = "test-data", - srcs = glob(["**/*"]), -) diff --git a/eden/integration/TARGETS b/eden/integration/TARGETS deleted file mode 100644 index 6b06fead3cce5..0000000000000 --- a/eden/integration/TARGETS +++ /dev/null @@ -1,703 +0,0 @@ -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") -load("//eden:defs.bzl", "get_integration_test_env_and_deps", "get_oss_suffix", "get_test_env_and_deps") - -oncall("scm_client_infra") - -artifacts = get_integration_test_env_and_deps() - -python_unittest( - name = "basic" + get_oss_suffix(), - srcs = ["basic_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "casing", - srcs = ["casing_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "changes", - srcs = ["changes_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "chown", - srcs = ["chown_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "clone", - srcs = ["clone_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "config", - srcs = ["config_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/config:config_thrift-py-deprecated", - "//eden/fs/py/eden/thrift:legacy", - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "corrupt_overlay", - srcs = ["corrupt_overlay_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "debug_getpath", - srcs = ["debug_getpath_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "debug_subscribe", - srcs = ["debug_subscribe_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "debug", - srcs = ["debug_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/py/eden/thrift:legacy", - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "doteden", - srcs = ["doteden_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "edenclient_test", - srcs = ["edenclient_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "fsck", - srcs = ["fsck_test.py"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:windows", - ], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - "//eden/test_support:py", - ], -) - -python_unittest( - name = "glob", - srcs = ["glob_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "health", - srcs = ["health_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/cli:lib", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "help", - srcs = ["help_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "info", - srcs = ["info_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/cli:lib", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "invalidate", - srcs = ["invalidate_test.py"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:windows", - ], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "lock", - srcs = ["lock_test.py"], - compatible_with = [ - "ovr_config//os:windows", - ], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - "//eden/integration/lib:ntapi", - ], -) - -python_unittest( - name = "eden_lock", - srcs = ["eden_lock_test.py"], - compatible_with = [ - "ovr_config//os:windows", - ], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - "//eden/integration/lib:ntapi", - ], -) - -python_unittest( - name = "long_path_test", - srcs = ["long_path_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "materialized_query", - srcs = ["materialized_query_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "mmap_test", - srcs = ["mmap_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "mount", - srcs = ["mount_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/cli:lib", - "//eden/fs/py/eden/thrift:legacy", - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - "//fb303/thrift:fb303_core-py", - "//thrift/lib/py:base", - ], -) - -python_unittest( - name = "oexcl", - srcs = ["oexcl_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "patch", - srcs = ["patch_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "persistence", - srcs = ["persistence_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "prjfs_stress", - srcs = ["prjfs_stress.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "prjfs_match_fs", - srcs = ["prjfs_match_fs.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "rage", - srcs = ["rage_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "rc", - srcs = ["rc_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "readdir", - srcs = ["readdir_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "redirect", - srcs = ["redirect_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/cli:lib", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "remount", - srcs = ["remount_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "rename", - srcs = ["rename_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "restart", - srcs = ["restart_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/cli:lib", - "//eden/fs/py/eden/thrift:legacy", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "rocksdb_store", - srcs = ["rocksdb_store_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/cli:lib", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "sed", - srcs = ["sed_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "setattr", - srcs = ["setattr_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "service_log", - srcs = ["service_log_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "stale", - srcs = ["stale_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/py/eden:config", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "stale_inode", - srcs = ["stale_inode_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "start", - srcs = ["start_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/cli:lib", - "//eden/integration/lib:lib", - "//fb303/thrift:fb303_core-py", - ], -) - -python_unittest( - name = "stats", - srcs = ["stats_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "stop", - srcs = ["stop_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/cli:lib", - "//eden/fs/cli:proc_utils", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "takeover", - srcs = ["takeover_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "fbsource//third-party/pypi/pexpect:pexpect", - "//eden/fs/cli:lib", - "//eden/fs/py/eden/thrift:legacy", - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - "//fb303/thrift:fb303_core-py", - ], -) - -python_unittest( - name = "thrift", - srcs = ["thrift_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/config:config_thrift-py-deprecated", - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "unicode", - srcs = ["unicode_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "unixsocket", - srcs = ["unixsocket_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "unlink", - srcs = ["unlink_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "userinfo", - srcs = ["userinfo_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "windows_fsck", - srcs = ["windows_fsck_test.py"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:windows", - ], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "xattr", - srcs = ["xattr_test.py"], - compatible_with = [ - "ovr_config//os:linux", - ], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "projfs_buffer", - srcs = ["projfs_buffer.py"], - compatible_with = [ - "ovr_config//os:linux", # just so pyre will type check me - "ovr_config//os:windows", - ], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "projfs_enumeration", - srcs = ["projfs_enumeration.py"], - compatible_with = [ - "ovr_config//os:linux", # just so pyre will type check me - "ovr_config//os:windows", - ], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - "//eden/integration/lib:ntapi", - ], -) - -# Also run basic sanity tests on the non-oss build flavor. -# We don't run all the tests on both flavors since it takes a while, and the -# two build flavors are almost the same, with only some minor differences in -# the initialization code. -full_artifacts = get_test_env_and_deps("") - -python_unittest( - name = "basic", - srcs = [ - "basic_test.py", - ], - env = full_artifacts["env"], - supports_static_listing = False, - runtime_deps = full_artifacts["deps"], - deps = [ - "//eden/integration/lib:lib", - ], -) diff --git a/eden/integration/facebook/lib/TARGETS b/eden/integration/facebook/lib/TARGETS deleted file mode 100644 index e71422cbce41c..0000000000000 --- a/eden/integration/facebook/lib/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -python_library( - name = "lib", - srcs = ["skip.py"], -) diff --git a/eden/integration/fsck/TARGETS b/eden/integration/fsck/TARGETS deleted file mode 100644 index bfe8bf05d8e24..0000000000000 --- a/eden/integration/fsck/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") -load("//eden:defs.bzl", "get_integration_test_env_and_deps") - -oncall("scm_client_infra") - -artifacts = get_integration_test_env_and_deps() - -python_unittest( - name = "fsck", - srcs = ["basic_snapshot_tests.py"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/cli:lib", - "//eden/integration/lib:lib", - "//eden/integration/snapshot:snapshot", - "//eden/test_support:py", - ], -) diff --git a/eden/integration/helpers/TARGETS b/eden/integration/helpers/TARGETS deleted file mode 100644 index 050fc318b45f1..0000000000000 --- a/eden/integration/helpers/TARGETS +++ /dev/null @@ -1,122 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") - -oncall("scm_client_infra") - -cpp_binary( - name = "fake_edenfs", - srcs = ["fake_edenfs.cpp"], - deps = [ - "//eden/common/utils:path", - "//eden/common/utils:user_info", - "//eden/fs/inodes:inodes", - "//eden/fs/service:init", - "//eden/fs/service:startup_logger", - "//eden/fs/service:startup_status_subscriber", - "//eden/fs/service:thrift-streaming-cpp2-services", - "//folly/init:init", - "//folly/io/async:async_signal_handler", - "//folly/logging:init", - "//folly/logging:logging", - "//folly/portability:gflags", - "//thrift/lib/cpp2:server", - ], -) - -cpp_binary( - name = "fsattr", - srcs = ["fsattr.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/common/utils:utils", - "//folly/init:init", - "//folly/json:dynamic", - "//folly/portability:gflags", - ], -) - -cpp_binary( - name = "takeover_tool", - srcs = ["TakeoverTool.cpp"], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - deps = [ - "//eden/fs/takeover:takeover", - "//eden/fs/utils:fs_channel_types", - "//folly/init:init", - "//folly/logging:init", - "//folly/logging:logging", - "//folly/portability:gflags", - ], -) - -cpp_binary( - name = "zero_blob", - srcs = ["ZeroBlob.cpp"], - deps = [ - "//eden/common/telemetry:structured_logger", - "//eden/common/utils:fault_injector", - "//eden/fs/config:config", - "//eden/fs/model:model", - "//eden/fs/store:rocksdb", - "//eden/fs/telemetry:stats", - "//folly/init:init", - "//folly/logging:init", - "//folly/logging:logging", - "//folly/portability:gflags", - ], -) - -cpp_binary( - name = "check_windows_rename", - srcs = ["CheckWindowsRename.cpp"], - compatible_with = [ - "ovr_config//os:windows", - ], - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/utils:path", - "//eden/common/utils:stringconv", - "//eden/fs/utils:projfs_util", - "//folly:try", - "//folly/init:init", - "//folly/portability:gflags", - "//folly/portability:windows", - ], -) - -cpp_binary( - name = "read_reparse_buffer", - srcs = ["ReadReparseBuffer.cpp"], - compatible_with = [ - "ovr_config//os:windows", - ], - deps = [ - "fbsource//third-party/fmt:fmt", - "//eden/common/utils:file_utils", - "//eden/common/utils:path", - "//eden/common/utils:stringconv", - "//eden/common/utils:win_error", - "//folly:string", - "//folly/init:init", - "//folly/portability:gflags", - "//folly/portability:windows", - ], -) - -cpp_binary( - name = "blake3_sum", - srcs = ["Blake3Sum.cpp"], - deps = [ - "//eden/fs/digest:blake3_hash", - "//folly:file", - "//folly:string", - "//folly/init:init", - "//folly/portability:gflags", - "//folly/system:memory_mapping", - ], -) diff --git a/eden/integration/hg/TARGETS b/eden/integration/hg/TARGETS deleted file mode 100644 index 06d9a7b036b8c..0000000000000 --- a/eden/integration/hg/TARGETS +++ /dev/null @@ -1,479 +0,0 @@ -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") -load("//eden:defs.bzl", "get_integration_test_env_and_deps") - -oncall("scm_client_infra") - -artifacts = get_integration_test_env_and_deps() - -python_unittest( - name = "absorb", - srcs = ["absorb_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "add", - srcs = ["add_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "commit", - srcs = ["commit_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "copy", - srcs = ["copy_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "debug_clear_local_caches", - srcs = ["debug_clear_local_caches_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "debug_get_parents", - srcs = ["debug_get_parents.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "debug_hg_dirstate", - srcs = ["debug_hg_dirstate_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "diff", - srcs = ["diff_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "doctor", - srcs = ["doctor_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "eden_journal", - srcs = ["eden_journal_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-python-types", - "//eden/fs/service:thrift-streaming-python-clients", - "//eden/fs/service:thrift-streaming-python-types", - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - "//thrift/lib/python/client:base", - ], -) - -python_unittest( - name = "files", - srcs = ["files_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "filteredhg", - srcs = ["filteredhg_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "filteredhg_clone", - srcs = ["filteredhg_clone_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "fold", - srcs = ["fold_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "graft", - srcs = ["graft_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "grep", - srcs = ["grep_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "histedit", - srcs = ["histedit_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "journal", - srcs = ["journal_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "merge", - srcs = ["merge_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "move", - srcs = ["move_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "negative_caching", - srcs = ["negative_caching_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "non_eden_operation", - srcs = ["non_eden_operation_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "post_clone", - srcs = ["post_clone_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "pull", - srcs = ["pull_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "rebase", - srcs = ["rebase_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "revert", - srcs = ["revert_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "rm", - srcs = ["rm_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "rollback", - srcs = ["rollback_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "shelve", - srcs = ["shelve_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "sparse", - srcs = ["sparse_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "split", - srcs = ["split_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "status_deadlock", - srcs = ["status_deadlock_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "status", - srcs = ["status_test.py"], - env = artifacts["env"], - os_deps = [ - ( - "windows", - ["//eden/fs/py/eden/thrift:windows_thrift"], - ), - ], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - "//thrift/lib/py:server_base", - ], -) - -python_unittest( - name = "storage_engine", - srcs = ["storage_engine_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "symlink", - srcs = ["symlink_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "undo", - srcs = ["undo_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "update", - srcs = ["update_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/fs/cli:lib", - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "uncommit", - srcs = ["uncommit_test.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - "//eden/integration/hg/lib:testutil", - "//eden/integration/lib:lib", - ], -) diff --git a/eden/integration/hg/lib/TARGETS b/eden/integration/hg/lib/TARGETS deleted file mode 100644 index 79324a3bd7cbe..0000000000000 --- a/eden/integration/hg/lib/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") -load("//eden:defs.bzl", "get_integration_test_env_and_deps") - -oncall("scm_client_infra") - -artifacts = get_integration_test_env_and_deps() - -python_library( - name = "testutil", - srcs = [ - "hg_extension_test_base.py", - "histedit_command.py", - ], - deps = [ - "//eden/fs/py/eden:config", - "//eden/integration/lib:lib", - ], -) - -python_unittest( - name = "lib", - srcs = [ - "hg_extension_test_base_test.py", - ], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - ":testutil", - "//eden/integration/lib:lib", - ], -) diff --git a/eden/integration/lib/TARGETS b/eden/integration/lib/TARGETS deleted file mode 100644 index 4ab8151d03ed8..0000000000000 --- a/eden/integration/lib/TARGETS +++ /dev/null @@ -1,44 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_python_extension.bzl", "cpp_python_extension") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -python_library( - name = "lib", - srcs = glob(["*.py"]), - os_deps = [ - ( - "windows", - [ - ":ntapi", - ], - ), - ], - deps = [ - "fbcode//fb303/thrift:fb303_core-py", - "fbsource//third-party/pypi/pexpect:pexpect", - "//eden/fs/cli:lib", - "//eden/fs/cli:proc_utils", - "//eden/fs/py/eden:config", - "//eden/fs/py/eden/thrift:legacy", - "//eden/fs/service:thrift-py-deprecated", - "//eden/integration/facebook/lib:lib", - "//eden/test_support:py", - ], -) - -cpp_python_extension( - name = "ntapi", - srcs = ["ntapi.cpp"], - base_module = "eden.integration.lib", - compatible_with = [ - "ovr_config//os:windows", - ], - compiler_flags = [ - "-Wno-missing-field-initializers", - "-Wno-unused-parameter", - ], - types = [ - "ntapi.pyi", - ], -) diff --git a/eden/integration/snapshot/TARGETS b/eden/integration/snapshot/TARGETS deleted file mode 100644 index 0ff37d8e25a26..0000000000000 --- a/eden/integration/snapshot/TARGETS +++ /dev/null @@ -1,52 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") -load("//eden:defs.bzl", "get_integration_test_env_and_deps") - -oncall("scm_client_infra") - -artifacts = get_integration_test_env_and_deps() - -python_library( - name = "snapshot", - srcs = [ - "inode_metadata.py", - "snapshot.py", - "verify.py", - ] + glob(["types/*.py"]), - deps = [ - "//eden/integration/lib:lib", - "//eden/test_support:py", - ], -) - -python_binary( - name = "gen_snapshot", - srcs = ["gen_snapshot.py"], - main_function = "eden.integration.snapshot.gen_snapshot.main_2", - deps = [ - ":snapshot", - "//eden/integration/lib:lib", - ], -) - -python_binary( - name = "unpack_snapshot", - srcs = ["unpack_snapshot.py"], - main_function = "eden.integration.snapshot.unpack_snapshot.main", - deps = [ - ":snapshot", - ], -) - -python_unittest( - name = "test_snapshots", - srcs = ["test_snapshots.py"], - env = artifacts["env"], - supports_static_listing = False, - runtime_deps = artifacts["deps"], - deps = [ - ":snapshot", - "//eden/integration/lib:lib", - ], -) diff --git a/eden/mononoke/TARGETS b/eden/mononoke/TARGETS deleted file mode 100644 index b5f8deacb9d57..0000000000000 --- a/eden/mononoke/TARGETS +++ /dev/null @@ -1,330 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") -load("//eden/mononoke/facebook:lib.bzl", "tokio_dependency_test") - -oncall("scm_server_infra") - -rust_binary( - name = "mononoke", - srcs = glob(["server/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "server"}, - deps = ([ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:openssl", - "fbsource//third-party/rust:slog", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/secure_utils:secure_utils", - "//eden/mononoke/cache_warmup:cache_warmup", - "//eden/mononoke/cmdlib:cmdlib_logging", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/server/repo_listener:repo_listener", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/scm/lib/clientinfo:clientinfo", - ] + ([] if rust_oss.is_oss_build() else [ - "//eden/mononoke/pushrebase:pushrebase_client", - ])), -) - -tokio_dependency_test( - name = "tokio_check", - rule = ":mononoke", -) - -rust_binary( - name = "bonsai_verify", - srcs = glob(["cmds/bonsai_verify/**/*.rs"]), - unittests = False, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:toml", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/failure_ext:failure_ext", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/lock_ext:lock_ext", - "//eden/mononoke/blobrepo:blobrepo_override", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobrepo_utils:blobrepo_utils", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - ], -) - -rust_binary( - name = "blobimport", - srcs = ["cmds/blobimport.rs"], - autocargo = {"cargo_toml_dir": "blobimport"}, - test_deps = [ - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "//common/rust/shed/failure_ext:failure_ext", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobimport_lib:blobimport_lib", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/cmdlib:cmdlib", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mercurial:mercurial_revlog", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/mononoke/wireproto_handler:wireproto_handler", - "//manifold/clients/rust:manifold_client", - ], -) - -rust_binary( - name = "blobstore_healer", - srcs = glob(["cmds/blobstore_healer/**/*.rs"]), - autocargo = {"cargo_toml_dir": "blobstore_healer"}, - named_deps = { - "futures_03_ext": "//common/rust/shed/futures_ext:futures_ext", - }, - test_deps = [ - "fbsource//third-party/rust:bytes", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/blobstore_sync_queue:blobstore_sync_queue", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/common/wait_for_replication:wait_for_replication", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_binary( - name = "aliasverify", - srcs = ["cmds/aliasverify.rs"], - autocargo = {"cargo_toml_dir": "aliasverify"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_repos:mononoke_repos", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage:sql_commit_graph_storage", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -rust_binary( - name = "revlogrepo", - srcs = ["cmds/revlogrepo.rs"], - named_deps = { - "clap-old": "fbsource//third-party/rust:clap-2", - }, - deps = [ - "//eden/mononoke/mercurial:mercurial_revlog", - "//eden/mononoke/mercurial:mercurial_types", - ], -) - -rust_binary( - name = "backfill_mapping", - srcs = ["cmds/backfill_mapping.rs"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:futures-util", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_svnrev_mapping:bonsai_svnrev_mapping", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_binary( - name = "statistics_collector", - srcs = ["cmds/statistics_collector.rs"], - autocargo = {"cargo_toml_dir": "statistics_collector"}, - named_deps = { - "futures_ext": "//common/rust/shed/futures_01_ext:futures_01_ext", - }, - test_deps = [ - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:redactedblobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -rust_binary( - name = "sqlblob_gc", - srcs = glob(["cmds/sqlblob_gc/**/*.rs"]), - test_deps = [], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytesize", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/blobstore:sqlblob", - "//eden/mononoke/cmdlib:cmdlib_logging", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/retry:retry", - "//eden/mononoke/metaconfig:metaconfig_types", - ], -) - -rust_binary( - name = "packer", - srcs = glob(["cmds/packer/**/*.rs"]), - test_deps = [ - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/blobstore:packblob", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/retry:retry", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_binary( - name = "check_git_wc", - srcs = glob(["cmds/check_git_wc/**/*.rs"]), - test_deps = [], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:git2", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/git/check_git_wc:check_git_wc", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/acl_regions/TARGETS b/eden/mononoke/acl_regions/TARGETS deleted file mode 100644 index 76f062799977e..0000000000000 --- a/eden/mononoke/acl_regions/TARGETS +++ /dev/null @@ -1,55 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "acl_regions", - srcs = glob([ - "src/**/*.rs", - ]), - test_deps = [ - "fbsource//third-party/rust:pretty_assertions", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "//common/rust/shed/facet:facet", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "acl_regions_test", - srcs = glob([ - "test/**/*.rs", - ]), - crate = "acl_regions_test", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:pretty_assertions", - ":acl_regions", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/server/context:context", - "//eden/mononoke/tests/utils:tests_utils", - ], -) diff --git a/eden/mononoke/async_requests/TARGETS b/eden/mononoke/async_requests/TARGETS deleted file mode 100644 index 29fe3a293c241..0000000000000 --- a/eden/mononoke/async_requests/TARGETS +++ /dev/null @@ -1,92 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "async_requests", - srcs = glob(["lib/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "lib"}, - test_deps = [ - "fbsource//third-party/rust:serde_json", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ":requests_table", - "//common/rust/shed/stats:stats", - "//eden/mononoke/async_requests/if:async_requests_types-thrift-rust", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/megarepo_api:megarepo_config", - "//eden/mononoke/megarepo_api:megarepo_error", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization-rust", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_library( - name = "async_requests_client", - srcs = glob(["async_requests_client/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "async_requests_client"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:slog", - ":async_requests", - ":requests_table", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - ], -) - -rust_library( - name = "requests_table", - srcs = glob([ - "requests_table/src/**/*.rs", - "requests_table/schemas/**/*.sql", - ]), - autocargo = {"cargo_toml_dir": "requests_table"}, - test_deps = [ - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - # This crate contains internal implementation details that should not be - # visible outside of this directory. - visibility = [ - ":async_requests", - ":client", - "//eden/mononoke/async_requests/worker:worker", - "//eden/mononoke/async_requests/worker:worker-unittest", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/facet:facet", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/async_requests/if/TARGETS b/eden/mononoke/async_requests/if/TARGETS deleted file mode 100644 index 88216963919df..0000000000000 --- a/eden/mononoke/async_requests/if/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "async_requests_types-thrift", - languages = [ - "rust", - ], - thrift_srcs = { - "async_requests_types_thrift.thrift": [], - }, - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - "//eden/mononoke/scs/if:source_control", - ], -) diff --git a/eden/mononoke/async_requests/worker/TARGETS b/eden/mononoke/async_requests/worker/TARGETS deleted file mode 100644 index 72ab8c006acfa..0000000000000 --- a/eden/mononoke/async_requests/worker/TARGETS +++ /dev/null @@ -1,49 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "worker", - srcs = glob(["src/**/*.rs"]), - crate_root = "src/main.rs", - test_deps = [ - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/async_requests:requests_table", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/hostname:hostname", - "//common/rust/shed/stats:stats", - "//eden/mononoke/async_requests:async_requests", - "//eden/mononoke/async_requests:async_requests_client", - "//eden/mononoke/async_requests:requests_table", - "//eden/mononoke/async_requests/if:async_requests_types-thrift-rust", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/cmdlib:cmdlib_logging", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/megarepo_api:megarepo_api", - "//eden/mononoke/megarepo_api:megarepo_error", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/scs/scs_errors:scs_errors", - "//eden/mononoke/scs/scs_methods:scs_methods", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/benchmarks/derived_data/TARGETS b/eden/mononoke/benchmarks/derived_data/TARGETS deleted file mode 100644 index 1e6021b2c3ebf..0000000000000 --- a/eden/mononoke/benchmarks/derived_data/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "benchmark_large_directory", - srcs = ["benchmark_large_directory.rs"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/futures_stats:futures_stats", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/derived_data:deleted_manifest", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/derived_data:skeleton_manifest_v2", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/derived_data/content_manifest_derivation:content_manifest_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/server/context:context", - "//eden/mononoke/tests/utils:tests_utils", - ], -) diff --git a/eden/mononoke/benchmarks/filestore/TARGETS b/eden/mononoke/benchmarks/filestore/TARGETS deleted file mode 100644 index 1505bc283e17d..0000000000000 --- a/eden/mononoke/benchmarks/filestore/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "benchmark_filestore", - srcs = ["benchmark_filestore.rs"], - unittests = False, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-util", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/cachelib_stub:cachelib", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/blobstore:prefixblob", - "//eden/mononoke/blobstore:throttledblob", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/facebook/manifoldblob:manifoldblob", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/benchmarks/storage_config/TARGETS b/eden/mononoke/benchmarks/storage_config/TARGETS deleted file mode 100644 index f2c184c2b53d3..0000000000000 --- a/eden/mononoke/benchmarks/storage_config/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "benchmark_storage_config", - srcs = glob(["src/**/*.rs"]), - unittests = False, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:criterion", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/repo_factory:repo_factory", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/blobimport_lib/TARGETS b/eden/mononoke/blobimport_lib/TARGETS deleted file mode 100644 index 6a8f91ccab2a1..0000000000000 --- a/eden/mononoke/blobimport_lib/TARGETS +++ /dev/null @@ -1,53 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "blobimport_lib", - srcs = glob(["src/**/*.rs"]), - named_deps = { - "futures-old": "fbsource//third-party/rust:futures-old", - }, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - ":consts", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/failure_ext:failure_ext", - "//common/rust/shed/futures_01_ext:futures_01_ext", - "//common/rust/shed/futures_ext:futures_ext", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/lfs_import_lib:lfs_import_lib", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_revlog", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/phases:phases", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/mononoke/wireproto_handler:wireproto_handler", - ], -) - -rust_library( - name = "consts", - srcs = glob(["consts/**/*.rs"]), - autocargo = {"cargo_toml_dir": "consts"}, - deps = [], -) diff --git a/eden/mononoke/blobrepo/TARGETS b/eden/mononoke/blobrepo/TARGETS deleted file mode 100644 index bb48c76011270..0000000000000 --- a/eden/mononoke/blobrepo/TARGETS +++ /dev/null @@ -1,130 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "blobsync", - srcs = glob(["blobsync/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "blobsync"}, - test_deps = [ - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/blobstore:redactedblobstore", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - ":repo_blobstore", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "repo_blobstore", - srcs = glob(["repo_blobstore/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "repo_blobstore"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/facet:facet", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:prefixblob", - "//eden/mononoke/blobstore:redactedblobstore", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "blobrepo_errors", - srcs = glob(["errors/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "errors"}, - deps = [ - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:bincode", - "fbsource//third-party/rust:thiserror", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) - -rust_library( - name = "blobrepo_hg", - srcs = glob(["blobrepo_hg/src/**/*.rs"]), - autocargo = { - "cargo_toml_dir": "blobrepo_hg", - }, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:uuid", - ":blobrepo_common", - ":blobrepo_errors", - ":repo_blobstore", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - "//eden/mononoke/wireproto_handler:wireproto_handler", - ], -) - -rust_library( - name = "blobrepo_override", - srcs = glob(["override/src/**/*.rs"]), - autocargo = { - "cargo_toml_dir": "override", - }, - deps = [], -) - -rust_library( - name = "blobrepo_common", - srcs = glob(["common/src/**/*.rs"]), - autocargo = { - "cargo_toml_dir": "common", - }, - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/blobrepo_utils/TARGETS b/eden/mononoke/blobrepo_utils/TARGETS deleted file mode 100644 index 0b19e5f7f3bb8..0000000000000 --- a/eden/mononoke/blobrepo_utils/TARGETS +++ /dev/null @@ -1,59 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "blobrepo_utils", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:dashmap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-stream", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:blobrepo_override", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "blobrepo_utils_test", - srcs = glob(["test/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - ":blobrepo_utils", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:blobrepo_override", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/mononoke/tests/fixtures:fixtures", - ], -) diff --git a/eden/mononoke/blobstore/TARGETS b/eden/mononoke/blobstore/TARGETS deleted file mode 100644 index b7fd231241d9f..0000000000000 --- a/eden/mononoke/blobstore/TARGETS +++ /dev/null @@ -1,634 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "blobstore_factory", - srcs = glob(["factory/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "factory"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand_distr", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - ":blobstore", - ":blobstore_stats", - ":cacheblob", - ":chaosblob", - ":delayblob", - ":fileblob", - ":logblob", - ":multiplexedblob", - ":multiplexedblob_wal", - ":packblob", - ":prefixblob", - ":readonlyblob", - ":s3blob", - ":samplingblob", - ":sqlblob", - ":throttledblob", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobstore_sync_queue:blobstore_sync_queue", - "//eden/mononoke/cmdlib:arg_extensions", - "//eden/mononoke/common/futures_watchdog:futures_watchdog", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/facebook/manifoldblob:manifoldblob", - "//eden/mononoke/facebook/s3pool:s3pool", - "//eden/mononoke/metaconfig:metaconfig_types", - ], -) - -rust_library( - name = "blobstore", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:auto_impl", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:either", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:trait-set", - "fbsource//third-party/rust:zstd", - "//common/rust/shed/stats:stats", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_library( - name = "cacheblob", - srcs = glob(["cacheblob/**/*.rs"]), - autocargo = {"cargo_toml_dir": "cacheblob"}, - test_deps = [ - ":memblob", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - ":blobstore", - ":prefixblob", - ":redactedblobstore", - "//common/rust/shed/cachelib_stub:cachelib", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/hostname:hostname", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/lock_ext:lock_ext", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobstore/if:memcache-lock-thrift-rust", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_unittest( - name = "blobstore-test", - srcs = glob(["test/**/*.rs"]), - crate = "blobstore_test", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:tempfile", - ":blobstore", - ":cacheblob", - ":fileblob", - ":memblob", - ":sqlblob", - "//cachelib/rust:cachelib", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "chaosblob", - srcs = glob(["chaosblob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "chaosblob"}, - test_deps = [ - ":memblob", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:thiserror", - ":blobstore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "fileblob", - srcs = glob(["fileblob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "fileblob"}, - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:percent-encoding", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:walkdir", - ":blobstore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "redactedblobstore", - srcs = glob([ - "redactedblobstore/src/**/*.rs", - ]), - autocargo = {"cargo_toml_dir": "redactedblobstore"}, - test_deps = [ - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:maplit", - ":memblob", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - ":blobstore", - ":prefixblob", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/facet:facet", - "//configerator/structs/scm/mononoke/redaction:redaction_set-rust", - "//eden/mononoke/common/reloader:reloader", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "packblob", - srcs = glob([ - "packblob/src/**/*.rs", - ]), - autocargo = {"cargo_toml_dir": "packblob"}, - test_deps = [ - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rand_xorshift", - ":memblob", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bufsize", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:zstd", - ":blobstore", - "//eden/mononoke/blobstore/packblob/if:packblob-thrift-rust", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_library( - name = "s3blob", - srcs = glob(["s3blob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "s3blob"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:hyper", - "fbsource//third-party/rust:hyper-openssl", - "fbsource//third-party/rust:nonzero_ext", - "fbsource//third-party/rust:openssl", - "fbsource//third-party/rust:rusoto_core", - "fbsource//third-party/rust:rusoto_credential", - "fbsource//third-party/rust:rusoto_s3", - "fbsource//third-party/rust:rusoto_sts", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "sqlblob", - srcs = glob([ - "sqlblob/src/**/*.rs", - "sqlblob/schema/**/*.sql", - ]), - autocargo = {"cargo_toml_dir": "sqlblob"}, - test_deps = [ - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/server/context:context", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:nonzero_ext", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-stream", - "fbsource//third-party/rust:twox-hash", - "fbsource//third-party/rust:vec1", - ":blobstore", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/sql:sql", - "//common/rust/shed/stats:stats", - "//common/rust/smc-thrift:smc-thrift", - "//common/smc/if:Smc2-rust-clients", - "//configerator/structs/scm/mononoke/xdb_gc:xdb_gc_structs-rust", - "//dba/myadmin/if:if-myadmin-rust", - "//dba/myadmin/if:if-myadmin-rust-clients", - "//dba/myadmin/if:if-myadmin-rust-srclients", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "delayblob", - srcs = glob(["delayblob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "delayblob"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rand_distr", - "fbsource//third-party/rust:tokio", - ":blobstore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "multiplexedblob", - srcs = glob(["multiplexedblob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "multiplexedblob"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:twox-hash", - ":blobstore", - ":blobstore_stats", - "//common/rust/shed/futures_stats:futures_stats", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "multiplexedblob_wal", - srcs = glob(["multiplexedblob_wal/src/*.rs"]), - autocargo = {"cargo_toml_dir": "multiplexedblob_wal"}, - test_deps = [ - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:nonzero_ext", - ":blobstore_test_utils", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/lock_ext:lock_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ":blobstore", - ":blobstore_stats", - ":multiplexedblob", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/blobstore_sync_queue:blobstore_sync_queue", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "memblob", - srcs = glob(["memblob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "memblob"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - ":blobstore", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "prefixblob", - srcs = glob(["prefixblob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "prefixblob"}, - test_deps = [ - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:maplit", - ":memblob", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:inlinable_string", - ":blobstore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "readonlyblob", - srcs = glob(["readonlyblob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "readonlyblob"}, - test_deps = [ - ":memblob", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:thiserror", - ":blobstore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "samplingblob", - srcs = glob(["samplingblob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "samplingblob"}, - test_deps = [ - ":memblob", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - ":blobstore", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "throttledblob", - srcs = glob(["throttledblob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "throttledblob"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:governor", - "fbsource//third-party/rust:nonzero_ext", - ":blobstore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "logblob", - srcs = glob(["logblob/src/*.rs"]), - autocargo = {"cargo_toml_dir": "logblob"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - ":blobstore", - ":blobstore_stats", - "//common/rust/shed/futures_stats:futures_stats", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "blobstore_stats", - srcs = glob(["blobstore_stats/src/*.rs"]), - autocargo = {"cargo_toml_dir": "blobstore_stats"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:strum", - ":blobstore", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "virtually_sharded_blobstore", - srcs = glob(["virtually_sharded_blobstore/src/*.rs"]), - autocargo = {"cargo_toml_dir": "virtually_sharded_blobstore"}, - test_deps = [] if rust_oss.is_oss_build() else [ - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:governor", - "fbsource//third-party/rust:nonzero_ext", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/slog_glog_fmt:slog_glog_fmt", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:scopeguard", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:twox-hash", - ":blobstore", - ":cacheblob", - "//common/rust/shed/cachelib_stub:cachelib", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/shared_error:shared_error", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/common/async_limiter:async_limiter", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "ephemeral_blobstore", - srcs = glob([ - "ephemeral_blobstore/src/*.rs", - "ephemeral_blobstore/schemas/**/*.sql", - ]), - autocargo = {"cargo_toml_dir": "ephemeral_blobstore"}, - test_deps = [ - "fbsource//third-party/rust:maplit", - ":memblob", - ":packblob", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:derivative", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:vec1", - ":blobstore", - ":prefixblob", - "//common/rust/shed/facet:facet", - "//common/rust/shed/futures_lazy_shared:futures_lazy_shared", - "//common/rust/shed/scuba_stub:scuba", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/commit_graph/memwrites_commit_graph_storage:memwrites_commit_graph_storage", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "blobstore_test_utils", - srcs = glob(["test_utils/*.rs"]), - autocargo = {"cargo_toml_dir": "test_utils"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:tokio", - ":blobstore", - "//common/rust/shed/lock_ext:lock_ext", - "//eden/mononoke/blobstore_sync_queue:blobstore_sync_queue", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/blobstore/if/TARGETS b/eden/mononoke/blobstore/if/TARGETS deleted file mode 100644 index 31bfed4e6b96e..0000000000000 --- a/eden/mononoke/blobstore/if/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "memcache-lock-thrift", - languages = ["rust"], - thrift_srcs = {"memcache_lock.thrift": []}, - visibility = [ - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/blobstore:cacheblob-unittest", - ], -) diff --git a/eden/mononoke/blobstore/packblob/if/TARGETS b/eden/mononoke/blobstore/packblob/if/TARGETS deleted file mode 100644 index bd0819ab39851..0000000000000 --- a/eden/mononoke/blobstore/packblob/if/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "packblob-thrift", - languages = ["rust"], - rust_deps = [ - "fbsource//third-party/rust:bytes", - ], - thrift_srcs = {"packblob.thrift": []}, - visibility = [ - "//eden/mononoke/blobstore:packblob", - "//eden/mononoke/blobstore:packblob-unittest", - ], -) diff --git a/eden/mononoke/blobstore_sync_queue/TARGETS b/eden/mononoke/blobstore_sync_queue/TARGETS deleted file mode 100644 index 163f69e999edf..0000000000000 --- a/eden/mononoke/blobstore_sync_queue/TARGETS +++ /dev/null @@ -1,48 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "blobstore_sync_queue", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:auto_impl", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:uuid", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/shared_error:shared_error", - "//common/rust/shed/sql:sql", - "//common/rust/shed/sql:sql_common", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "blobstore_sync_queue_test", - srcs = glob(["test/**/*.rs"]), - crate = "blobstore_sync_queue_test", - deps = [ - "fbsource//third-party/rust:anyhow", - ":blobstore_sync_queue", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/bonsai_git_mapping/TARGETS b/eden/mononoke/bonsai_git_mapping/TARGETS deleted file mode 100644 index 73733f9d6fe1d..0000000000000 --- a/eden/mononoke/bonsai_git_mapping/TARGETS +++ /dev/null @@ -1,95 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "bonsai_git_mapping", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/sql:sql", - "//common/rust/shed/stats:stats", - "//eden/mononoke/bonsai_git_mapping/if:bonsai_git_mapping_entry_thrift-rust", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_library( - name = "git_mapping_pushrebase_hook", - srcs = glob([ - "git_mapping_pushrebase_hook/**/*.rs", - ]), - autocargo = {"cargo_toml_dir": "git_mapping_pushrebase_hook"}, - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - ":bonsai_git_mapping", - "//common/rust/shed/sql:sql", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/pushrebase:pushrebase_hook", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "bonsai_git_mapping_test", - srcs = glob(["test/**/*.rs"]), - crate = "bonsai_git_mapping_test", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:async-trait", - ":bonsai_git_mapping", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/bonsai_git_mapping/if/TARGETS b/eden/mononoke/bonsai_git_mapping/if/TARGETS deleted file mode 100644 index 4d255bced49c8..0000000000000 --- a/eden/mononoke/bonsai_git_mapping/if/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "bonsai_git_mapping_entry_thrift", - languages = [ - "rust", - ], - rust_deps = [ - "fbsource//third-party/rust:smallvec", - ], - thrift_srcs = { - "bonsai_git_mapping.thrift": [], - }, - # The Thrift definitions are private and only used for serialization -- do - # not allow other code to use them. - visibility = [ - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping-unittest", - ], - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/bonsai_globalrev_mapping/TARGETS b/eden/mononoke/bonsai_globalrev_mapping/TARGETS deleted file mode 100644 index 4ed1e9109239a..0000000000000 --- a/eden/mononoke/bonsai_globalrev_mapping/TARGETS +++ /dev/null @@ -1,92 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "bonsai_globalrev_mapping", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/facet:facet", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/sql:sql", - "//eden/mononoke/bonsai_globalrev_mapping/if:bonsai_globalrev_mapping_thrift-rust", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_library( - name = "globalrev_pushrebase_hook", - srcs = glob([ - "globalrev_pushrebase_hook/**/*.rs", - ]), - autocargo = {"cargo_toml_dir": "globalrev_pushrebase_hook"}, - test_deps = [ - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - ":bonsai_globalrev_mapping", - "//common/rust/shed/sql:sql", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/pushrebase:pushrebase_hook", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "bonsai_globalrev_mapping_test", - srcs = glob(["test/**/*.rs"]), - crate = "bonsai_globalrev_mapping_test", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:assert_matches", - ":bonsai_globalrev_mapping", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mercurial:mercurial_types-mocks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/bonsai_globalrev_mapping/if/TARGETS b/eden/mononoke/bonsai_globalrev_mapping/if/TARGETS deleted file mode 100644 index 08cf853cda4ec..0000000000000 --- a/eden/mononoke/bonsai_globalrev_mapping/if/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "bonsai_globalrev_mapping_thrift", - languages = [ - "rust", - ], - thrift_srcs = { - "bonsai_globalrev_mapping.thrift": [], - }, - # The Thrift definitions are private and only used for serialization -- do - # not allow other code to use them. - visibility = [ - "//eden/mononoke/bonsai_globalrev_mapping:", - ], - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/bonsai_hg_mapping/TARGETS b/eden/mononoke/bonsai_hg_mapping/TARGETS deleted file mode 100644 index c9bba60967dd5..0000000000000 --- a/eden/mononoke/bonsai_hg_mapping/TARGETS +++ /dev/null @@ -1,60 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "bonsai_hg_mapping", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/lock_ext:lock_ext", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/sql:sql", - "//common/rust/shed/stats:stats", - "//eden/mononoke/bonsai_hg_mapping/if:bonsai_hg_mapping_entry_thrift-rust", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_unittest( - name = "bonsai_hg_mapping_test", - srcs = glob(["test/**/*.rs"]), - crate = "bonsai_hg_mapping_test", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:async-trait", - ":bonsai_hg_mapping", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mercurial:mercurial_types-mocks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/bonsai_hg_mapping/if/TARGETS b/eden/mononoke/bonsai_hg_mapping/if/TARGETS deleted file mode 100644 index ebca7c79bb978..0000000000000 --- a/eden/mononoke/bonsai_hg_mapping/if/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "bonsai_hg_mapping_entry_thrift", - languages = [ - "rust", - ], - rust_deps = [ - "fbsource//third-party/rust:smallvec", - ], - thrift_srcs = { - "bonsai_hg_mapping.thrift": [], - }, - # The Thrift definitions are private and only used for serialization -- do - # not allow other code to use them. - visibility = [ - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping-unittest", - ], - deps = [ - "//eden/mononoke/mercurial/types/if:mercurial-thrift", - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/bonsai_svnrev_mapping/TARGETS b/eden/mononoke/bonsai_svnrev_mapping/TARGETS deleted file mode 100644 index 1c1d90f2d726c..0000000000000 --- a/eden/mononoke/bonsai_svnrev_mapping/TARGETS +++ /dev/null @@ -1,47 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "bonsai_svnrev_mapping", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/facet:facet", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/sql:sql", - "//eden/mononoke/bonsai_svnrev_mapping/if:bonsai_svnrev_mapping_thrift-rust", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_unittest( - name = "bonsai_svnrev_mapping_test", - srcs = glob(["test/**/*.rs"]), - crate = "bonsai_svnrev_mapping_test", - deps = [ - "fbsource//third-party/rust:anyhow", - ":bonsai_svnrev_mapping", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/bonsai_svnrev_mapping/if/TARGETS b/eden/mononoke/bonsai_svnrev_mapping/if/TARGETS deleted file mode 100644 index 04daeaefb4557..0000000000000 --- a/eden/mononoke/bonsai_svnrev_mapping/if/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "bonsai_svnrev_mapping_thrift", - languages = [ - "rust", - ], - thrift_srcs = { - "bonsai_svnrev_mapping.thrift": [], - }, - # The Thrift definitions are private and only used for serialization -- do - # not allow other code to use them. - visibility = [ - "//eden/mononoke/bonsai_svnrev_mapping:", - ], - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/bonsai_tag_mapping/TARGETS b/eden/mononoke/bonsai_tag_mapping/TARGETS deleted file mode 100644 index ae0cc80699250..0000000000000 --- a/eden/mononoke/bonsai_tag_mapping/TARGETS +++ /dev/null @@ -1,36 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "bonsai_tag_mapping", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/facet:facet", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) - -rust_unittest( - name = "bonsai_tag_mapping_test", - srcs = glob(["test/**/*.rs"]), - crate = "bonsai_tag_mapping_test", - deps = [ - "fbsource//third-party/rust:anyhow", - ":bonsai_tag_mapping", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], -) diff --git a/eden/mononoke/bookmarks/TARGETS b/eden/mononoke/bookmarks/TARGETS deleted file mode 100644 index 4fa2a7b701dd7..0000000000000 --- a/eden/mononoke/bookmarks/TARGETS +++ /dev/null @@ -1,252 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "bookmarks", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/ascii_ext:ascii_ext", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:derive_more", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:thiserror", - ":bookmarks_types", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/shared_error:shared_error", - "//common/rust/shed/sql:sql", - "//common/rust/shed/stats:stats", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "dbbookmarks", - srcs = glob([ - "dbbookmarks/src/**/*.rs", - "dbbookmarks/schemas/**/*.sql", - ]), - autocargo = {"cargo_toml_dir": "dbbookmarks"}, - test_deps = [ - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/ascii_ext:ascii_ext", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:slog", - ":bookmarks", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/sql:sql", - "//common/rust/shed/stats:stats", - "//eden/mononoke/common/futures_watchdog:futures_watchdog", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "dbbookmarks-test", - srcs = glob(["dbbookmarks/tests/**/*.rs"]), - autocargo = {"cargo_toml_dir": "dbbookmarks"}, - crate = "dbbookmarks_test", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - "//common/rust/shed/sql:sql", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:dbbookmarks", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "bookmarks_cache", - srcs = glob(["bookmarks_cache/*.rs"]), - autocargo = {"cargo_toml_dir": "bookmarks_cache"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - ":bookmarks_types", - "//common/rust/shed/facet:facet", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "warm_bookmarks_cache", - srcs = glob(["warm_bookmarks_cache/*.rs"]), - autocargo = {"cargo_toml_dir": "warm_bookmarks_cache"}, - test_deps = [ - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:rand_distr", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:delayblob", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - ":bookmarks", - ":bookmarks_cache", - ":bookmarks_types", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/lock_ext:lock_ext", - "//common/rust/shed/stats:stats", - "//eden/mononoke/common/futures_watchdog:futures_watchdog", - "//eden/mononoke/derived_data:basename_suffix_skeleton_manifest_v3", - "//eden/mononoke/derived_data:blame", - "//eden/mononoke/derived_data:case_conflict_skeleton_manifest", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:deleted_manifest", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:fastlog", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/derived_data:skeleton_manifest_v2", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/derived_data/content_manifest_derivation:content_manifest_derivation", - "//eden/mononoke/derived_data/filenodes_derivation:filenodes_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/phases:phases", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "bookmarks_types", - srcs = glob(["bookmarks_types/**/*.rs"]), - autocargo = {"cargo_toml_dir": "bookmarks_types"}, - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:quickcheck", - "//common/rust/shed/ascii_ext:ascii_ext", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - "//common/rust/shed/sql:sql", - ], -) - -rust_library( - name = "bookmarks_movement", - srcs = glob(["bookmarks_movement/**/*.rs"]), - autocargo = {"cargo_toml_dir": "bookmarks_movement"}, - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/sql:sql", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:thiserror", - ":bookmarks", - ":bookmarks_types", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/derived_data:case_conflict_skeleton_manifest", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/features/repo_update_logger:repo_update_logger", - "//eden/mononoke/git_source_of_truth:git_source_of_truth", - "//eden/mononoke/hooks:hooks", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/pushrebase:pushrebase_hook", - "//eden/mononoke/pushrebase:pushrebase_hooks", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/repo_lock:repo_lock", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/cache_warmup/TARGETS b/eden/mononoke/cache_warmup/TARGETS deleted file mode 100644 index e50acc8a89f92..0000000000000 --- a/eden/mononoke/cache_warmup/TARGETS +++ /dev/null @@ -1,35 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "cache_warmup", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/derived_data/filenodes_derivation:filenodes_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/microwave:microwave", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/cas_client/TARGETS b/eden/mononoke/cas_client/TARGETS deleted file mode 100644 index 89af6b241162a..0000000000000 --- a/eden/mononoke/cas_client/TARGETS +++ /dev/null @@ -1,73 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "cas_client", - srcs = glob(["client/**/*.rs"]), - autocargo = {"cargo_toml_dir": "client"}, - deps = ([ - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:thiserror", - "//eden/mononoke/server/context:context", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:fileblob", - "//common/rust/shed/fbinit:fbinit", - ] + ([] if rust_oss.is_oss_build() else [ - "//remote_execution/client_lib/wrappers/rust:re_client_lib", - "//common/rust/shed/futures_ext:futures_ext", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - ])), -) - -rust_library( - name = "scm_client", - srcs = glob(["scm_client/**/*.rs"]), - autocargo = {"cargo_toml_dir": "scm_client"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/cas_client:cas_client", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "changesets_uploader", - srcs = glob(["changesets_uploader/**/*.rs"]), - autocargo = {"cargo_toml_dir": "changesets_uploader"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:atomic-counter", - "fbsource//third-party/rust:bytesize", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/cas_client:cas_client", - "//eden/mononoke/cas_client:scm_client", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/common/futures_watchdog:futures_watchdog", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/cats/TARGETS b/eden/mononoke/cats/TARGETS deleted file mode 100644 index 112b634522084..0000000000000 --- a/eden/mononoke/cats/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "cats", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:http", - "//common/rust/shed/fbinit:fbinit", - "//crypto/cat/rust:cryptocat", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/permission_checker:permission_checker", - ], -) diff --git a/eden/mononoke/changesets/changesets_creation/TARGETS b/eden/mononoke/changesets/changesets_creation/TARGETS deleted file mode 100644 index 7d19a4279520a..0000000000000 --- a/eden/mononoke/changesets/changesets_creation/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "changesets_creation", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/common/topo_sort:topo_sort", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/cmdlib/TARGETS b/eden/mononoke/cmdlib/TARGETS deleted file mode 100644 index 9e86424bba2e9..0000000000000 --- a/eden/mononoke/cmdlib/TARGETS +++ /dev/null @@ -1,157 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "cmdlib", - srcs = glob(["src/**/*.rs"]), - named_deps = { - "clap-old": "fbsource//third-party/rust:clap-2", - }, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maybe-owned", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:rand_distr", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:slog-term", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:tokio", - ":cmdlib_logging", - ":environment", - "//common/rust/ratelim:ratelim", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/hostname:hostname", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/panichandler:panichandler", - "//common/rust/shed/services:services", - "//common/rust/shed/slog_glog_fmt:slog_glog_fmt", - "//common/rust/shed/slog_stats:slog_stats", - "//common/rust/shed/stats:stats", - "//common/rust/slog-logview:slog-logview", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib/caching:cmdlib_caching", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/rust/slog_ext:slog_ext", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/scribe_ext:scribe_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/derived_data:derived_data_remote", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/megarepo_api:megarepo_config", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_parser", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/observability:observability", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:repo_factory", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "arg_extensions", - srcs = glob(["extensions/**/*.rs"]), - autocargo = {"cargo_toml_dir": "extensions"}, -) - -rust_library( - name = "environment", - srcs = glob(["environment/**/*.rs"]), - autocargo = {"cargo_toml_dir": "environment"}, - deps = [ - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:derived_data_remote", - "//eden/mononoke/megarepo_api:megarepo_config", - "//eden/mononoke/observability:observability", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) - -rust_library( - name = "cmdlib_logging", - srcs = glob(["logging/**/*.rs"]), - autocargo = {"cargo_toml_dir": "log"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:env_logger", - "fbsource//third-party/rust:log", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:slog-term", - "//common/rust/gflags:gflags", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/hostname:hostname", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/panichandler:panichandler", - "//common/rust/shed/slog_glog_fmt:slog_glog_fmt", - "//common/rust/slog-logview:slog-logview", - "//eden/mononoke/cmdlib:arg_extensions", - "//eden/mononoke/common/rust/slog_ext:slog_ext", - "//eden/mononoke/common/scribe_ext:scribe_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/observability:observability", - ], -) - -rust_library( - name = "cmdlib_x_repo", - srcs = glob(["x_repo/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "x_repo"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures-util", - ":cmdlib", - "//common/rust/shed/facet:facet", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/repo_factory:repo_factory", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "cmdlib_cross_repo", - srcs = glob(["cross_repo/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "cross_repo"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "//common/rust/shed/facet:facet", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/repo_factory:repo_factory", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/cmdlib/base_app/TARGETS b/eden/mononoke/cmdlib/base_app/TARGETS deleted file mode 100644 index e728e485b38cb..0000000000000 --- a/eden/mononoke/cmdlib/base_app/TARGETS +++ /dev/null @@ -1,14 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "base_app", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:heck", - "fbsource//third-party/rust:static_assertions", - ], -) diff --git a/eden/mononoke/cmdlib/caching/TARGETS b/eden/mononoke/cmdlib/caching/TARGETS deleted file mode 100644 index 3f9f3b0ecc961..0000000000000 --- a/eden/mononoke/cmdlib/caching/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "cmdlib_caching", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:clap", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/cmdlib:arg_extensions", - "//eden/mononoke/cmdlib:environment", - ] + ([] if rust_oss.is_oss_build() else [ - "fbsource//third-party/rust:anyhow", - "//common/rust/shed/cachelib_stub:cachelib", - ]), -) diff --git a/eden/mononoke/cmdlib/commit_id/TARGETS b/eden/mononoke/cmdlib/commit_id/TARGETS deleted file mode 100644 index 161561e3afecb..0000000000000 --- a/eden/mononoke/cmdlib/commit_id/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "commit_id", - srcs = glob(["src/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:strum", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_svnrev_mapping:bonsai_svnrev_mapping", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/cmdlib/config_args/TARGETS b/eden/mononoke/cmdlib/config_args/TARGETS deleted file mode 100644 index 2e2621de6879d..0000000000000 --- a/eden/mononoke/cmdlib/config_args/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "config_args", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/mononoke_configs:mononoke_configs", - ], -) diff --git a/eden/mononoke/cmdlib/displaying/TARGETS b/eden/mononoke/cmdlib/displaying/TARGETS deleted file mode 100644 index 078c39c83f858..0000000000000 --- a/eden/mononoke/cmdlib/displaying/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "cmdlib_displaying", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:unicode-truncate", - "fbsource//third-party/rust:unicode-width", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/cmdlib/displaying/graph/TARGETS b/eden/mononoke/cmdlib/displaying/graph/TARGETS deleted file mode 100644 index 50b7496940d35..0000000000000 --- a/eden/mononoke/cmdlib/displaying/graph/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "print_graph", - srcs = glob(["src/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"sapling-dag-types": {"features": [ - "for-tests", - "serialize-abomonation", - ]}}}, - "extra_buck_dependencies": {"dependencies": [ - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/dag-types:dag-types", - ]}, - }}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/cmdlib/displaying:cmdlib_displaying", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/dag:dag-lite", - ], -) diff --git a/eden/mononoke/cmdlib/mononoke_app/TARGETS b/eden/mononoke/cmdlib/mononoke_app/TARGETS deleted file mode 100644 index 7c61bfcfaab1e..0000000000000 --- a/eden/mononoke/cmdlib/mononoke_app/TARGETS +++ /dev/null @@ -1,66 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "mononoke_app", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:futures-util", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:tokio", - "//common/rust/gflags:gflags", - "//common/rust/ratelim:ratelim", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/services:services", - "//common/rust/shed/slog_stats:slog_stats", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/blobstore:prefixblob", - "//eden/mononoke/blobstore:redactedblobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_svnrev_mapping:bonsai_svnrev_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib:arg_extensions", - "//eden/mononoke/cmdlib:cmdlib_logging", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/base_app:base_app", - "//eden/mononoke/cmdlib/caching:cmdlib_caching", - "//eden/mononoke/cmdlib/commit_id:commit_id", - "//eden/mononoke/cmdlib/config_args:config_args", - "//eden/mononoke/cmdlib/mononoke_app/shutdown_timeout:shutdown_timeout", - "//eden/mononoke/cmdlib/mononoke_app/tls:tls", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/running:running", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:derived_data_remote", - "//eden/mononoke/megarepo_api:megarepo_config", - "//eden/mononoke/metaconfig:metaconfig_parser", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_configs:mononoke_configs", - "//eden/mononoke/mononoke_repos:mononoke_repos", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/observability:observability", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_factory:repo_factory", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/cmdlib/mononoke_app/shutdown_timeout/TARGETS b/eden/mononoke/cmdlib/mononoke_app/shutdown_timeout/TARGETS deleted file mode 100644 index 90c9ad5d7dc2f..0000000000000 --- a/eden/mononoke/cmdlib/mononoke_app/shutdown_timeout/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "shutdown_timeout", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - ], -) diff --git a/eden/mononoke/cmdlib/mononoke_app/tls/TARGETS b/eden/mononoke/cmdlib/mononoke_app/tls/TARGETS deleted file mode 100644 index dfcca2d7373cc..0000000000000 --- a/eden/mononoke/cmdlib/mononoke_app/tls/TARGETS +++ /dev/null @@ -1,11 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "tls", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:clap", - ], -) diff --git a/eden/mononoke/cmdlib/scrubbing/TARGETS b/eden/mononoke/cmdlib/scrubbing/TARGETS deleted file mode 100644 index 9d7a3a97943c7..0000000000000 --- a/eden/mononoke/cmdlib/scrubbing/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "cmdlib_scrubbing", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - ], -) diff --git a/eden/mononoke/cmdlib/sharding/TARGETS b/eden/mononoke/cmdlib/sharding/TARGETS deleted file mode 100644 index 276ae5410a045..0000000000000 --- a/eden/mononoke/cmdlib/sharding/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "executor_lib", - srcs = glob(["src/**/*.rs"]), - named_deps = { - "folly-logging": "//common/rust/folly/logging:logging", - }, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shardmanager:shardmanager_lib", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - ] + ([] if rust_oss.is_oss_build() else [ - "fbsource//third-party/rust:futures", - "//common/rust/shed/stats:stats", - ]), -) diff --git a/eden/mononoke/cmdlib/sharding_ext/TARGETS b/eden/mononoke/cmdlib/sharding_ext/TARGETS deleted file mode 100644 index 544e1ccf9801a..0000000000000 --- a/eden/mononoke/cmdlib/sharding_ext/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "sharding_ext", - srcs = glob(["src/**/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - ], -) diff --git a/eden/mononoke/cmdlib/zk_leader_election/TARGETS b/eden/mononoke/cmdlib/zk_leader_election/TARGETS deleted file mode 100644 index e9e618c9ac4e7..0000000000000 --- a/eden/mononoke/cmdlib/zk_leader_election/TARGETS +++ /dev/null @@ -1,14 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "zk_leader_election", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:slog", - "//common/rust/zkserverguard_helper:zkserverguard_helper", - ], -) diff --git a/eden/mononoke/cmds/copy_blobstore_keys/TARGETS b/eden/mononoke/cmds/copy_blobstore_keys/TARGETS deleted file mode 100644 index cf219f4cffe76..0000000000000 --- a/eden/mononoke/cmds/copy_blobstore_keys/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "copy_blobstore_keys", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-stream", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/commit_cloud/TARGETS b/eden/mononoke/commit_cloud/TARGETS deleted file mode 100644 index 77ceb61d22eb6..0000000000000 --- a/eden/mononoke/commit_cloud/TARGETS +++ /dev/null @@ -1,54 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "commit_cloud", - srcs = glob([ - "src/**/*.rs", - "schemas/*.sql", - ]), - test_deps = [ - "fbsource//third-party/rust:once_cell", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:serde_json", - "//common/rust/shed/facet:facet", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/sql:sql", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/commit_cloud/helpers:commit_cloud_helpers", - "//eden/mononoke/commit_cloud/types:commit_cloud_types", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/facebook/commit_cloud:commit_cloud_intern_utils", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) - -rust_unittest( - name = "dbcommitcloud-test", - srcs = glob(["tests/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/commit_cloud:commit_cloud", - "//eden/mononoke/commit_cloud/types:commit_cloud_types", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/commit_cloud/helpers/TARGETS b/eden/mononoke/commit_cloud/helpers/TARGETS deleted file mode 100644 index 6fae42caf1bfd..0000000000000 --- a/eden/mononoke/commit_cloud/helpers/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "commit_cloud_helpers", - srcs = glob(["*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:regex", - ], -) diff --git a/eden/mononoke/commit_cloud/types/TARGETS b/eden/mononoke/commit_cloud/types/TARGETS deleted file mode 100644 index 20b10b75bff04..0000000000000 --- a/eden/mononoke/commit_cloud/types/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "commit_cloud_types", - srcs = glob(["*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:thiserror", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/commit_rewriting/backsyncer/TARGETS b/eden/mononoke/commit_rewriting/backsyncer/TARGETS deleted file mode 100644 index f0d9ef9f5a049..0000000000000 --- a/eden/mononoke/commit_rewriting/backsyncer/TARGETS +++ /dev/null @@ -1,114 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "backsyncer", - srcs = [ - "src/lib.rs", - "src/tests.rs", - ], - test_deps = [ - "fbcode//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/futures_ext:futures_ext", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync_test_utils", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/movers:movers", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api:commit_transformation", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/features/repo_update_logger:repo_update_logger", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/server/context:context", - "//eden/mononoke/wireproto_handler:wireproto_handler", - ], -) - -rust_binary( - name = "backsyncer_cmd", - srcs = ["backsyncer_cmd/main.rs"], - autocargo = {"cargo_toml_dir": "backsyncer_cmd"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap-2", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - ":backsyncer", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib:cmdlib", - "//eden/mononoke/cmdlib:cmdlib_x_repo", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/mononoke/wireproto_handler:wireproto_handler", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/commit_rewriting/bookmark_renaming/TARGETS b/eden/mononoke/commit_rewriting/bookmark_renaming/TARGETS deleted file mode 100644 index 5e9e814ec02be..0000000000000 --- a/eden/mononoke/commit_rewriting/bookmark_renaming/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "bookmark_renaming", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:thiserror", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/commit_rewriting/bookmarks_validator/TARGETS b/eden/mononoke/commit_rewriting/bookmarks_validator/TARGETS deleted file mode 100644 index 575d1a873a16b..0000000000000 --- a/eden/mononoke/commit_rewriting/bookmarks_validator/TARGETS +++ /dev/null @@ -1,40 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "bookmarks_validator", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync_test_utils", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib:cmdlib", - "//eden/mononoke/cmdlib:cmdlib_x_repo", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/commit_rewriting/commit_validator/TARGETS b/eden/mononoke/commit_rewriting/commit_validator/TARGETS deleted file mode 100644 index 6230a476d09af..0000000000000 --- a/eden/mononoke/commit_rewriting/commit_validator/TARGETS +++ /dev/null @@ -1,55 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "commit_validator", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:tokio", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync_test_utils", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:ref-cast", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/movers:movers", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/commit_rewriting/cross_repo_sync/TARGETS b/eden/mononoke/commit_rewriting/cross_repo_sync/TARGETS deleted file mode 100644 index df1ed792ed9b0..0000000000000 --- a/eden/mononoke/commit_rewriting/cross_repo_sync/TARGETS +++ /dev/null @@ -1,182 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "cross_repo_sync", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:tokio", - ":cross_repo_sync_test_utils", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:derivative", - "fbsource//third-party/rust:either", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:ref-cast", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:scopeguard", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:static_assertions", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/blobstore:readonlyblob", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/commit_rewriting/bookmark_renaming:bookmark_renaming", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/movers:movers", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping_pushrebase_hook", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/topo_sort:topo_sort", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:derived_data", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api:commit_transformation", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/pushrebase:pushrebase_hooks", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "cross_repo_sync_test_utils", - srcs = glob(["test_utils/**/*.rs"]), - autocargo = {"cargo_toml_dir": "test_utils"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:maplit", - ":cross_repo_sync", - "//common/rust/shed/facet:facet", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/megarepo:megarepolib", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/megarepo_api:commit_transformation", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/server/context:context", - "//eden/mononoke/tests/utils:tests_utils", - ], -) - -rust_unittest( - name = "cross_repo_sync_test", - srcs = glob(["test/**/*.rs"]), - crate = "cross_repo_sync_test", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:fn-error-context", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:strum", - ":cross_repo_sync", - ":cross_repo_sync_test_utils", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/server/context:context", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], -) diff --git a/eden/mononoke/commit_rewriting/live_commit_sync_config/TARGETS b/eden/mononoke/commit_rewriting/live_commit_sync_config/TARGETS deleted file mode 100644 index c39ee41514a34..0000000000000 --- a/eden/mononoke/commit_rewriting/live_commit_sync_config/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "live_commit_sync_config", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/cached_config:cached_config", - "//configerator/structs/scm/mononoke/repos:commitsync-rust", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/metaconfig:metaconfig_parser", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "live_commit_sync_config_test", - srcs = glob(["test/**/*.rs"]), - crate = "live_commit_sync_config_test", - crate_root = "test/main.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:pretty_assertions", - ":live_commit_sync_config", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/commit_rewriting/megarepo/TARGETS b/eden/mononoke/commit_rewriting/megarepo/TARGETS deleted file mode 100644 index ee91bc7773219..0000000000000 --- a/eden/mononoke/commit_rewriting/megarepo/TARGETS +++ /dev/null @@ -1,115 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "megarepolib", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:slog", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/commit_rewriting/movers:movers", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/phases:phases", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -rust_binary( - name = "megarepotool", - srcs = glob(["tool/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync_test_utils", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap-2", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-stream", - ":megarepolib", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobrepo_utils:blobrepo_utils", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib:cmdlib", - "//eden/mononoke/cmdlib:cmdlib_x_repo", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/movers:movers", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api:commit_transformation", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/pushrebase:pushrebase_hooks", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job/TARGETS b/eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job/TARGETS deleted file mode 100644 index 82945aacf01af..0000000000000 --- a/eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job/TARGETS +++ /dev/null @@ -1,56 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "mononoke_x_repo_sync_job", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync_test_utils", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:indicatif", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib:cmdlib_cross_repo", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/cmdlib/zk_leader_election:zk_leader_election", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job_helper_lib", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/commit_rewriting/movers/TARGETS b/eden/mononoke/commit_rewriting/movers/TARGETS deleted file mode 100644 index 0755048b21f08..0000000000000 --- a/eden/mononoke/commit_rewriting/movers/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "movers", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:thiserror", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/commit_rewriting/synced_commit_mapping/TARGETS b/eden/mononoke/commit_rewriting/synced_commit_mapping/TARGETS deleted file mode 100644 index 714d3a8deb147..0000000000000 --- a/eden/mononoke/commit_rewriting/synced_commit_mapping/TARGETS +++ /dev/null @@ -1,76 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "synced_commit_mapping", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:auto_impl", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:dashmap", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/sql:sql", - "//common/rust/shed/stats:stats", - "//eden/mononoke/commit_rewriting/synced_commit_mapping/if:synced_commit_mapping_thrift-rust", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_unittest( - name = "synced_commit_mapping_test", - srcs = glob(["test/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - ":synced_commit_mapping", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "synced_commit_mapping_pushrebase_hook", - srcs = glob([ - "pushrebase_hook/**/*.rs", - ]), - autocargo = {"cargo_toml_dir": "pushrebase_hook"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - ":synced_commit_mapping", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sql:sql", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/pushrebase:pushrebase_hook", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/commit_rewriting/synced_commit_mapping/if/TARGETS b/eden/mononoke/commit_rewriting/synced_commit_mapping/if/TARGETS deleted file mode 100644 index 76246c99f43ed..0000000000000 --- a/eden/mononoke/commit_rewriting/synced_commit_mapping/if/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "synced_commit_mapping_thrift", - languages = [ - "rust", - ], - thrift_srcs = { - "synced_commit_mapping.thrift": [], - }, - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/common/assembly_line/TARGETS b/eden/mononoke/common/assembly_line/TARGETS deleted file mode 100644 index b103776c6c5f6..0000000000000 --- a/eden/mononoke/common/assembly_line/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "assembly_line", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:tokio", - ], - deps = [ - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:pin-project", - ], -) diff --git a/eden/mononoke/common/async_limiter/TARGETS b/eden/mononoke/common/async_limiter/TARGETS deleted file mode 100644 index 1c9cdac216107..0000000000000 --- a/eden/mononoke/common/async_limiter/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "async_limiter", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "package": { - "autoexamples": False, - }, - }, - }, - test_deps = [ - "fbsource//third-party/rust:nonzero_ext", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:governor", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ], -) diff --git a/eden/mononoke/common/async_limiter/examples/TARGETS b/eden/mononoke/common/async_limiter/examples/TARGETS deleted file mode 100644 index 04b8ba61e0034..0000000000000 --- a/eden/mononoke/common/async_limiter/examples/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "tokio_v2", - srcs = glob(["tokio_v2/**/*.rs"]), - autocargo = {"cargo_toml_dir": "tokio_v2"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:governor", - "fbsource//third-party/rust:nonzero_ext", - "fbsource//third-party/rust:tokio", - "//eden/mononoke/common/async_limiter:async_limiter", - ], -) diff --git a/eden/mononoke/common/bounded_traversal/TARGETS b/eden/mononoke/common/bounded_traversal/TARGETS deleted file mode 100644 index 5b5348b0ac37f..0000000000000 --- a/eden/mononoke/common/bounded_traversal/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "bounded_traversal", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:quickcheck_async", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/lock_ext:lock_ext", - ], - deps = [ - "fbsource//third-party/rust:either", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:thiserror", - ], -) diff --git a/eden/mononoke/common/connection_security_checker/TARGETS b/eden/mononoke/common/connection_security_checker/TARGETS deleted file mode 100644 index 047633e5488ff..0000000000000 --- a/eden/mononoke/common/connection_security_checker/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "connection_security_checker", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/permission_checker:permission_checker", - ], -) diff --git a/eden/mononoke/common/copy_utils/TARGETS b/eden/mononoke/common/copy_utils/TARGETS deleted file mode 100644 index 9682d40c2b9f8..0000000000000 --- a/eden/mononoke/common/copy_utils/TARGETS +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "copy_utils", - srcs = glob(["src/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:slog", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data/content_manifest_derivation:content_manifest_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api:commit_transformation", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/common/dedupmap/TARGETS b/eden/mononoke/common/dedupmap/TARGETS deleted file mode 100644 index dfef61a085dab..0000000000000 --- a/eden/mononoke/common/dedupmap/TARGETS +++ /dev/null @@ -1,9 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "dedupmap", - srcs = glob(["src/**/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], -) diff --git a/eden/mononoke/common/facebook/git_locator/TARGETS b/eden/mononoke/common/facebook/git_locator/TARGETS deleted file mode 100644 index 656f874d02efb..0000000000000 --- a/eden/mononoke/common/facebook/git_locator/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "git_locator", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:arc-swap", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-retry", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/smc:smc", - "//common/rust/smc-updates:smc-updates", - "//common/rust/thrift/srclient:srclient", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - ], -) diff --git a/eden/mononoke/common/facebook/thrift_client/TARGETS b/eden/mononoke/common/facebook/thrift_client/TARGETS deleted file mode 100644 index fdf83d5bc0984..0000000000000 --- a/eden/mononoke/common/facebook/thrift_client/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "thrift_client", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:serde_json", - "//common/rust/identity:identity", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/thrift/bareclient:thriftclient", - "//common/rust/thrift/srclient:srclient", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - "//thrift/lib/rust:fbthrift", - ], -) diff --git a/eden/mononoke/common/futures_watchdog/TARGETS b/eden/mononoke/common/futures_watchdog/TARGETS deleted file mode 100644 index 72af67a092faf..0000000000000 --- a/eden/mononoke/common/futures_watchdog/TARGETS +++ /dev/null @@ -1,14 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "futures_watchdog", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maybe-owned", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:slog", - ], -) diff --git a/eden/mononoke/common/iterhelpers/TARGETS b/eden/mononoke/common/iterhelpers/TARGETS deleted file mode 100644 index 67103924387a9..0000000000000 --- a/eden/mononoke/common/iterhelpers/TARGETS +++ /dev/null @@ -1,11 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "iterhelpers", - srcs = glob(["src/*.rs"]), - test_deps = [ - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], -) diff --git a/eden/mononoke/common/logger_ext/TARGETS b/eden/mononoke/common/logger_ext/TARGETS deleted file mode 100644 index c3b6988e0f380..0000000000000 --- a/eden/mononoke/common/logger_ext/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "logger_ext", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/common/memory/TARGETS b/eden/mononoke/common/memory/TARGETS deleted file mode 100644 index 065690bd85329..0000000000000 --- a/eden/mononoke/common/memory/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "memory", - srcs = glob(["src/**/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - test_labels = ["serialize_test_cases"], - deps = [ - "fbsource//third-party/rust:memory-stats", - ], -) diff --git a/eden/mononoke/common/path_hash/TARGETS b/eden/mononoke/common/path_hash/TARGETS deleted file mode 100644 index 795570af95e64..0000000000000 --- a/eden/mononoke/common/path_hash/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "path_hash", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "//common/rust/shed/sql:sql", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/common/reloader/TARGETS b/eden/mononoke/common/reloader/TARGETS deleted file mode 100644 index c877d2b41df7d..0000000000000 --- a/eden/mononoke/common/reloader/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "reloader", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:arc-swap", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_ext:futures_ext", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/common/rendezvous/TARGETS b/eden/mononoke/common/rendezvous/TARGETS deleted file mode 100644 index b8872a3745a2e..0000000000000 --- a/eden/mononoke/common/rendezvous/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "rendezvous", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:dashmap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/shared_error:shared_error", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - ], -) diff --git a/eden/mononoke/common/retry/TARGETS b/eden/mononoke/common/retry/TARGETS deleted file mode 100644 index 44d4a58244080..0000000000000 --- a/eden/mononoke/common/retry/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "retry", - srcs = glob(["src/**/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - ], -) diff --git a/eden/mononoke/common/running/TARGETS b/eden/mononoke/common/running/TARGETS deleted file mode 100644 index a983d21f82176..0000000000000 --- a/eden/mononoke/common/running/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "running", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - ], -) diff --git a/eden/mononoke/common/rust/caching_ext/TARGETS b/eden/mononoke/common/rust/caching_ext/TARGETS deleted file mode 100644 index 5db84ce9cf832..0000000000000 --- a/eden/mononoke/common/rust/caching_ext/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "caching_ext", - srcs = glob([ - "src/**/*.rs", - ]), - test_deps = [ - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:quickcheck", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cachelib_stub:cachelib", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/stats:stats", - ], -) diff --git a/eden/mononoke/common/rust/slog_ext/TARGETS b/eden/mononoke/common/rust/slog_ext/TARGETS deleted file mode 100644 index 8d946be7628b3..0000000000000 --- a/eden/mononoke/common/rust/slog_ext/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "slog_ext", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:slog-term", - "//common/rust/shed/failure_ext:failure_ext", - ], -) diff --git a/eden/mononoke/common/rust/sql_ext/TARGETS b/eden/mononoke/common/rust/sql_ext/TARGETS deleted file mode 100644 index b1553420c4c89..0000000000000 --- a/eden/mononoke/common/rust/sql_ext/TARGETS +++ /dev/null @@ -1,54 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "sql_ext", - srcs = glob([ - "src/**/*.rs", - ]), - test_deps = [ - "fbsource//third-party/rust:assert_matches", - ], - deps = ([ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:paste", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_cbor", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:twox-hash", - "//common/rust/mysql:mysql_client", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/sql:sql", - "//dba/myadmin/if:if-myadmin-rust", - "//dba/myadmin/if:if-myadmin-rust-srclients", - "//eden/mononoke/common/retry:retry", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/scm/lib/clientinfo:clientinfo", - ] + ([] if rust_oss.is_oss_build() else [ - "fbsource//third-party/rust:aws-config", - "fbsource//third-party/rust:aws-sdk-secretsmanager", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/sql:sql_common", - "//common/rust/shed/stats:stats", - "fbsource//third-party/rust:mysql_async", - "//eden/mononoke/common/time_measuring:time_measuring", - ])) + [ - "//dba/myadmin/if:if-myadmin-rust-clients", - ], -) diff --git a/eden/mononoke/common/rust/sql_ext/examples/facebook/TARGETS b/eden/mononoke/common/rust/sql_ext/examples/facebook/TARGETS deleted file mode 100644 index 74e9f0ef9fadd..0000000000000 --- a/eden/mononoke/common/rust/sql_ext/examples/facebook/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "myadmin_example", - srcs = [ - "myadmin_example.rs", - ], - crate_root = "myadmin_example.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - ], -) diff --git a/eden/mononoke/common/scribe_ext/TARGETS b/eden/mononoke/common/scribe_ext/TARGETS deleted file mode 100644 index 2d9a04ae3a4c6..0000000000000 --- a/eden/mononoke/common/scribe_ext/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "scribe_ext", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "//common/rust/shed/fbinit:fbinit", - ] + ([] if rust_oss.is_oss_build() else [ - # buildifier: keep sorted - "//common/rust/scribe:scribe", - "//common/rust/shed/scuba_stub:scuba", - ]), -) diff --git a/eden/mononoke/common/scuba_ext/TARGETS b/eden/mononoke/common/scuba_ext/TARGETS deleted file mode 100644 index 4b39e86e5504a..0000000000000 --- a/eden/mononoke/common/scuba_ext/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "scuba_ext", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:nonzero_ext", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/scuba_stub:scuba", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/common/memory:memory", - "//eden/mononoke/common/scribe_ext:scribe_ext", - "//eden/mononoke/observability:observability", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/common/sql_construct/TARGETS b/eden/mononoke/common/sql_construct/TARGETS deleted file mode 100644 index 7f86ee6715dc5..0000000000000 --- a/eden/mononoke/common/sql_construct/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "sql_construct", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/metaconfig:metaconfig_types", - ], -) diff --git a/eden/mononoke/common/thrift_convert/TARGETS b/eden/mononoke/common/thrift_convert/TARGETS deleted file mode 100644 index 1cc31e859485e..0000000000000 --- a/eden/mononoke/common/thrift_convert/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "thrift_convert", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bufsize", - "fbsource//third-party/rust:bytes", - ":thrift_convert_proc_macros", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_library( - name = "thrift_convert_proc_macros", - srcs = glob(["proc_macros/*.rs"]), - autocargo = { - "cargo_toml_dir": "proc_macros", - }, - crate_root = "proc_macros/lib.rs", - proc_macro = True, - deps = [ - "fbsource//third-party/rust:proc-macro2", - "fbsource//third-party/rust:quote", - "fbsource//third-party/rust:syn1", - ], -) - -rust_unittest( - name = "thrift_convert_tests", - srcs = glob(["tests/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - ":thrift_convert", - "//eden/mononoke/common/thrift_convert/tests/if:thrift-convert-test-rust", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], -) diff --git a/eden/mononoke/common/thrift_convert/tests/if/TARGETS b/eden/mononoke/common/thrift_convert/tests/if/TARGETS deleted file mode 100644 index 3143edb36e15a..0000000000000 --- a/eden/mononoke/common/thrift_convert/tests/if/TARGETS +++ /dev/null @@ -1,14 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "thrift-convert-test", - languages = [ - "rust", - "cpp2", - ], - rust_deps = [], - thrift_srcs = {"thrift_convert_test.thrift": []}, - deps = [], -) diff --git a/eden/mononoke/common/time_measuring/TARGETS b/eden/mononoke/common/time_measuring/TARGETS deleted file mode 100644 index 89a9adccc1c3f..0000000000000 --- a/eden/mononoke/common/time_measuring/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "time_measuring", - srcs = glob([ - "src/**/*.rs", - ]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:dashmap", - "fbsource//third-party/rust:thiserror", - ], -) diff --git a/eden/mononoke/common/topo_sort/TARGETS b/eden/mononoke/common/topo_sort/TARGETS deleted file mode 100644 index bb180e54febed..0000000000000 --- a/eden/mononoke/common/topo_sort/TARGETS +++ /dev/null @@ -1,14 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "topo_sort", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - ], -) diff --git a/eden/mononoke/common/type_map/TARGETS b/eden/mononoke/common/type_map/TARGETS deleted file mode 100644 index 347f7db80744c..0000000000000 --- a/eden/mononoke/common/type_map/TARGETS +++ /dev/null @@ -1,9 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "type_map", - srcs = ["src/lib.rs"], - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], -) diff --git a/eden/mononoke/common/uniqueheap/TARGETS b/eden/mononoke/common/uniqueheap/TARGETS deleted file mode 100644 index 5359a93c821e0..0000000000000 --- a/eden/mononoke/common/uniqueheap/TARGETS +++ /dev/null @@ -1,10 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "uniqueheap", - srcs = glob(["src/**/*.rs"]), - deps = [ - ], -) diff --git a/eden/mononoke/common/wait_for_replication/TARGETS b/eden/mononoke/common/wait_for_replication/TARGETS deleted file mode 100644 index a9f81f748d67c..0000000000000 --- a/eden/mononoke/common/wait_for_replication/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "wait_for_replication", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/fbinit:fbinit", - "//configerator/structs/scm/mononoke/mysql/replication_lag:replication_lag_config-rust", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/metaconfig:metaconfig_types", - ], -) diff --git a/eden/mononoke/common/yield_stream/TARGETS b/eden/mononoke/common/yield_stream/TARGETS deleted file mode 100644 index 7fc133d897217..0000000000000 --- a/eden/mononoke/common/yield_stream/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "yield_stream", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:tokio", - ], - deps = [ - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:pin-project", - ], -) diff --git a/eden/mononoke/derived_data/TARGETS b/eden/mononoke/derived_data/TARGETS deleted file mode 100644 index b796c219ee24c..0000000000000 --- a/eden/mononoke/derived_data/TARGETS +++ /dev/null @@ -1,661 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "derived_data_constants", - srcs = glob(["constants/**/*.rs"]), - autocargo = {"cargo_toml_dir": "constants"}, -) - -rust_library( - name = "derived_data", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - ":derived_data_manager", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "bulk_derivation", - srcs = glob(["bulk_derivation/**/*.rs"]), - autocargo = {"cargo_toml_dir": "bulk_derivation"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:tokio", - ":basename_suffix_skeleton_manifest_v3", - ":blame", - ":case_conflict_skeleton_manifest", - ":changeset_info", - ":deleted_manifest", - ":derived_data_manager", - ":fastlog", - ":fsnodes", - ":skeleton_manifest", - ":skeleton_manifest_v2", - ":test_manifest", - ":test_sharded_manifest", - ":unodes", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/derived_data/content_manifest_derivation:content_manifest_derivation", - "//eden/mononoke/derived_data/filenodes_derivation:filenodes_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "derived_data_manager", - srcs = glob(["manager/**/*.rs"]), - autocargo = {"cargo_toml_dir": "manager"}, - test_deps = [ - "fbsource//third-party/rust:tokio", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:either", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ":derived_data_constants", - ":derived_data_remote", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/lock_ext:lock_ext", - "//common/rust/shed/shared_error:shared_error", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - ], -) - -rust_library( - name = "fsnodes", - srcs = glob(["fsnodes/*.rs"]), - autocargo = {"cargo_toml_dir": "fsnodes"}, - test_deps = [ - "fbsource//third-party/rust:tokio", - ":derived_data_test_utils", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:digest", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:sha2", - "fbsource//third-party/rust:thiserror", - ":derived_data", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "skeleton_manifest", - srcs = glob(["skeleton_manifest/*.rs"]), - autocargo = {"cargo_toml_dir": "skeleton_manifest"}, - test_deps = [ - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:tokio", - ":derived_data_test_utils", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "unodes", - srcs = glob(["unodes/*.rs"]), - autocargo = {"cargo_toml_dir": "unodes"}, - test_deps = [ - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:maplit", - ":derived_data_test_utils", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/derived_data/filenodes_derivation:filenodes_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "fastlog", - srcs = glob(["fastlog/*.rs"]), - autocargo = {"cargo_toml_dir": "fastlog"}, - test_deps = [ - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rand_xorshift", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ":derived_data_manager", - ":unodes", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "blame", - srcs = glob(["blame/*.rs"]), - autocargo = {"cargo_toml_dir": "blame"}, - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ":derived_data", - ":derived_data_manager", - ":unodes", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/lock_ext:lock_ext", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "changeset_info", - srcs = glob(["changeset_info/*.rs"]), - autocargo = {"cargo_toml_dir": "changeset_info"}, - crate_root = "changeset_info/lib.rs", - test_deps = [ - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:unicode-segmentation", - ":derived_data_manager", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization-rust", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_library( - name = "deleted_manifest", - srcs = glob(["deleted_manifest/*.rs"]), - autocargo = {"cargo_toml_dir": "deleted_manifest"}, - test_deps = [ - "fbcode//common/rust/shed/sorted_vector_map:sorted_vector_map", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:pretty_assertions", - ":derived_data_test_utils", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:atomic-counter", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:multimap", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - ":derived_data", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "basename_suffix_skeleton_manifest_v3", - srcs = glob(["basename_suffix_skeleton_manifest_v3/*.rs"]), - autocargo = {"cargo_toml_dir": "basename_suffix_skeleton_manifest_v3"}, - test_deps = [ - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:quickcheck", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/tests/fixtures:fixtures", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:vec1", - ":skeleton_manifest", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "skeleton_manifest_v2", - srcs = glob(["skeleton_manifest_v2/*.rs"]), - autocargo = {"cargo_toml_dir": "skeleton_manifest_v2"}, - test_deps = [ - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:pretty_assertions", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "case_conflict_skeleton_manifest", - srcs = glob(["case_conflict_skeleton_manifest/*.rs"]), - autocargo = {"cargo_toml_dir": "case_conflict_skeleton_manifest"}, - test_deps = [ - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:quickcheck", - ":skeleton_manifest_v2", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "test_manifest", - srcs = glob(["test_manifest/*.rs"]), - autocargo = {"cargo_toml_dir": "test_manifest"}, - test_deps = [ - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:futures", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/tests/fixtures:fixtures", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - ":skeleton_manifest", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "test_sharded_manifest", - srcs = glob(["test_sharded_manifest/*.rs"]), - autocargo = {"cargo_toml_dir": "test_sharded_manifest"}, - test_deps = [ - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:futures", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/tests/fixtures:fixtures", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:itertools", - ":skeleton_manifest", - ":test_manifest", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:test_manifest", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "derived_data_test_utils", - srcs = glob(["test_utils/*.rs"]), - autocargo = {"cargo_toml_dir": "test_utils"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "derived_data_remote", - srcs = glob(["remote/*.rs"]), - autocargo = {"cargo_toml_dir": "remote"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "//eden/mononoke/cmdlib:arg_extensions", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/derived_data/content_manifest_derivation/TARGETS b/eden/mononoke/derived_data/content_manifest_derivation/TARGETS deleted file mode 100644 index d8da7dc7ad29f..0000000000000 --- a/eden/mononoke/derived_data/content_manifest_derivation/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("mononoke") - -rust_library( - name = "content_manifest_derivation", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:either", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/derived_data/filenodes_derivation/TARGETS b/eden/mononoke/derived_data/filenodes_derivation/TARGETS deleted file mode 100644 index a091260b73c34..0000000000000 --- a/eden/mononoke/derived_data/filenodes_derivation/TARGETS +++ /dev/null @@ -1,44 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "filenodes_derivation", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/derived_data/if/TARGETS b/eden/mononoke/derived_data/if/TARGETS deleted file mode 100644 index 6c9194c0caf81..0000000000000 --- a/eden/mononoke/derived_data/if/TARGETS +++ /dev/null @@ -1,36 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") -load("//common/automock:automock.bzl", "thrift_plugin_automock") - -oncall("scm_server_infra") - -thrift_library( - name = "derived_data_type_if", - java_versions = [ - "21", - ], - languages = [ - "hs2", - "rust", - "py3", - "cpp2", - "java-swift", - "py-deprecated", - ], - plugins = [ - thrift_plugin_automock, - ], - py3_namespace = "scm.derived_data.thrift", - py_base_module = "scm.derived_data.thrift", - py_remote_service_router = True, - thrift_cpp2_options = [ - "reflection", - ], - thrift_py_options = "utf8strings", - thrift_rust_options = [ - "deprecated_default_enum_min_i32", - "serde", - ], - thrift_srcs = { - "derived_data_type.thrift": [], - }, -) diff --git a/eden/mononoke/derived_data/mercurial_derivation/TARGETS b/eden/mononoke/derived_data/mercurial_derivation/TARGETS deleted file mode 100644 index 0cc0db3737404..0000000000000 --- a/eden/mononoke/derived_data/mercurial_derivation/TARGETS +++ /dev/null @@ -1,98 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "mercurial_derivation", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:either", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:blobrepo_common", - "//eden/mononoke/blobrepo:blobrepo_errors", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/derived_data:derived_data", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "mercurial_derivation_test", - srcs = glob(["test/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rand_distr", - "fbsource//third-party/rust:rand_xorshift", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/blobstore:delayblob", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/cmdlib/caching:cmdlib_caching", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data/filenodes_derivation:filenodes_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mercurial:mercurial_types-mocks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/server/context:context", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], -) diff --git a/eden/mononoke/derived_data/remote/if/TARGETS b/eden/mononoke/derived_data/remote/if/TARGETS deleted file mode 100644 index e0b518d93be88..0000000000000 --- a/eden/mononoke/derived_data/remote/if/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -# This code was initially generated by ServiceFoundry -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "derived_data_service_if", - languages = [ - "rust", - ], - rust_deps = [ - "fbsource//third-party/rust:smallvec", - ], - rust_gen_metadata = True, - thrift_rust_options = ["deprecated_default_enum_min_i32"], - thrift_srcs = { - "derived_data_service.thrift": ["DerivedDataService"], - }, - deps = [ - "//eden/mononoke/filenodes/if:filenodes-if", - "//eden/mononoke/git/git_types/if:git-types-thrift", - "//eden/mononoke/mercurial/types/if:mercurial-thrift", - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - "//fb303/thrift:fb303_core", - ], -) diff --git a/eden/mononoke/edenapi_service/TARGETS b/eden/mononoke/edenapi_service/TARGETS deleted file mode 100644 index b702f0e0eb303..0000000000000 --- a/eden/mononoke/edenapi_service/TARGETS +++ /dev/null @@ -1,75 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "edenapi_service", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gotham", - "fbsource//third-party/rust:gotham_derive", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:hyper", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:mime", - "fbsource//third-party/rust:nonzero_ext", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_cbor", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:sha2", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_movement", - "//eden/mononoke/commit_cloud/types:commit_cloud_types", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/gotham_ext:gotham_ext", - "//eden/mononoke/hooks:hooks", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_api_hg:mononoke_api_hg", - "//eden/mononoke/mononoke_configs:mononoke_configs", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/rate_limiting:rate_limiting", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/mononoke/time_window_counter:time_window_counter", - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/dag/dag-types:dag-types", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/revisionstore:revisionstore_types", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/mononoke/facebook/aliasverify/TARGETS b/eden/mononoke/facebook/aliasverify/TARGETS deleted file mode 100644 index f315aac9044d1..0000000000000 --- a/eden/mononoke/facebook/aliasverify/TARGETS +++ /dev/null @@ -1,10 +0,0 @@ -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -fbpkg.builder( - name = "mononoke.aliasverify", - path_actions = { - "aliasverify": "//eden/mononoke:aliasverify", - }, -) diff --git a/eden/mononoke/facebook/blobimportjob/TARGETS b/eden/mononoke/facebook/blobimportjob/TARGETS deleted file mode 100644 index 683af0a44347d..0000000000000 --- a/eden/mononoke/facebook/blobimportjob/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") - -oncall("scm_server_infra") - -python_binary( - name = "blobimportjob", - srcs = ["main.py"], - main_function = "eden.mononoke.facebook.blobimportjob.main.main", - deps = [ - "//configerator/distribution/api/py:configerator_config", - "//configerator/structs/scm/mononoke/blobimport:blobimport_state-py-deprecated", - "//dsi/logger/configs/ScmMononokeBlobimportJobLoggerConfig:py3-logger", - "//libfb/py:log", - "//libfb/py:ods_logging", - "//libfb/py/asyncio:await_utils", - "//maestro/if:if-py", - "//manifold/blobstore/if:blobstore-py", - "//manifold/clients/python:manifold_client_deprecated", - "//monitoring/obc/py:OBCClient", - "//scm/lib:repo", - ], - external_deps = [ - ], -) diff --git a/eden/mononoke/facebook/blobstore_deletion/TARGETS b/eden/mononoke/facebook/blobstore_deletion/TARGETS deleted file mode 100644 index d557d603e311b..0000000000000 --- a/eden/mononoke/facebook/blobstore_deletion/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") - -oncall("scm_server_infra") - -python_binary( - name = "manifold_copy", - srcs = ["manifold_copy.py"], - main_function = "eden.mononoke.facebook.blobstore_deletion.manifold_copy.main", - deps = [ - "//manifold/clients/python:manifold_client", - ], -) - -python_binary( - name = "manifold_key_download", - srcs = ["manifold_key_download.py"], - main_function = "eden.mononoke.facebook.blobstore_deletion.manifold_key_download.main", - deps = [ - "//datainfra/presto/py:client_lib", - ], -) - -python_binary( - name = "find_linked_node", - srcs = ["find_linked_node.py"], - main_function = "eden.mononoke.facebook.blobstore_deletion.find_linked_node.main", - deps = [ - "//dba/asyncio:bulk_dml", - "//libfb/py/asyncio:limit_concurrency", - "//libfb/py/asyncio:mysql", - ], -) diff --git a/eden/mononoke/facebook/bookmark_service/TARGETS b/eden/mononoke/facebook/bookmark_service/TARGETS deleted file mode 100644 index 280cb41f2b33d..0000000000000 --- a/eden/mononoke/facebook/bookmark_service/TARGETS +++ /dev/null @@ -1,85 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_binary( - name = "bookmark_service_client_cli", - srcs = glob(["client/bin/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:prettytable-rs", - ":bookmark_service_client", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/bookmarks:bookmarks_cache", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/cmdlib:cmdlib_logging", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) - -rust_library( - name = "bookmark_service_client", - srcs = glob([ - "client/lib/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/bookmarks:bookmarks_cache", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/common/facebook/thrift_client:thrift_client", - "//eden/mononoke/facebook/bookmark_service/if:bookmark_service_if-rust", - "//eden/mononoke/facebook/bookmark_service/if:bookmark_service_if-rust-clients", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//fb303/thrift:fb303_core-rust", - ], -) - -rust_binary( - name = "bookmark_service_server", - srcs = glob([ - "server/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/shared_error:shared_error", - "//common/rust/srserver:srserver", - "//eden/mononoke/bookmarks:bookmarks_cache", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:derived_data", - "//eden/mononoke/facebook/bookmark_service/if:BookmarkService-metadata-sys", - "//eden/mononoke/facebook/bookmark_service/if:bookmark_service_if-rust", - "//eden/mononoke/facebook/bookmark_service/if:bookmark_service_if-rust-services", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - "//fb303/thrift:fb303_core-rust", - "//fb303/thrift:fb303_core-rust-services", - ], -) diff --git a/eden/mononoke/facebook/bookmark_service/if/TARGETS b/eden/mononoke/facebook/bookmark_service/if/TARGETS deleted file mode 100644 index 005bcc59caa59..0000000000000 --- a/eden/mononoke/facebook/bookmark_service/if/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "bookmark_service_if", - languages = [ - "rust", - ], - rust_gen_metadata = True, - thrift_rust_options = ["deprecated_default_enum_min_i32"], - thrift_srcs = { - "bookmark_service.thrift": ["BookmarkService"], - }, - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - "//fb303/thrift:fb303_core", - ], -) diff --git a/eden/mononoke/facebook/commit_cloud/TARGETS b/eden/mononoke/facebook/commit_cloud/TARGETS deleted file mode 100644 index 4396a70863061..0000000000000 --- a/eden/mononoke/facebook/commit_cloud/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "commit_cloud_intern_utils", - srcs = glob([ - "**/*.rs", - ]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:reqwest", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "//common/rust/shed/fbinit:fbinit", - "//configerator/structs/infrasec/if:acl-rust", - "//crypto/cat/rust:cryptocat", - "//eden/mononoke/commit_cloud/helpers:commit_cloud_helpers", - "//eden/mononoke/commit_cloud/types:commit_cloud_types", - "//eden/mononoke/facebook/employee_service:employee_service", - "//eden/mononoke/permission_checker:permission_checker", - ], -) diff --git a/eden/mononoke/facebook/config/TARGETS b/eden/mononoke/facebook/config/TARGETS deleted file mode 100644 index a82566dac1501..0000000000000 --- a/eden/mononoke/facebook/config/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup", "buck_genrule", "buck_sh_binary") - -oncall("scm_server_infra") - -buck_sh_binary( - name = "config_gen.sh", - main = "config_gen.sh", -) - -buck_filegroup( - name = "raw_config", - srcs = glob([ - "src/**/*", - ]), -) - -buck_genrule( - name = "config", - out = "config", - cmd = '"$(exe :config_gen.sh)" "$(location :raw_config)" "$OUT"', -) diff --git a/eden/mononoke/facebook/derived_data_service/TARGETS b/eden/mononoke/facebook/derived_data_service/TARGETS deleted file mode 100644 index a59b66819fd57..0000000000000 --- a/eden/mononoke/facebook/derived_data_service/TARGETS +++ /dev/null @@ -1,188 +0,0 @@ -# This code was initially generated by ServiceFoundry -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("//fbpkg:fbpkg.bzl", "fbpkg") -load("//tupperware/cm/antlir2/bzl:buck2_container.bzl", "tw") - -oncall("scm_server_infra") - -rust_binary( - name = "derived_data_service", - srcs = glob([ - "server/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:dashmap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:nonzero_ext", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/shared_error:shared_error", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//common/rust/srserver:srserver", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:basename_suffix_skeleton_manifest_v3", - "//eden/mononoke/derived_data:blame", - "//eden/mononoke/derived_data:case_conflict_skeleton_manifest", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:deleted_manifest", - "//eden/mononoke/derived_data:derived_data", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:fastlog", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/derived_data:skeleton_manifest_v2", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/derived_data/content_manifest_derivation:content_manifest_derivation", - "//eden/mononoke/derived_data/filenodes_derivation:filenodes_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/derived_data/remote/if:DerivedDataService-metadata-sys", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust-services", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derivation_queues:repo_derivation_queues", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - "//fb303/thrift:fb303_core-rust", - "//fb303/thrift:fb303_core-rust-services", - ], -) - -rust_binary( - name = "derived_data_service_stats_collector", - srcs = glob([ - "stats_collector/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/services:services", - "//common/rust/shed/stats:stats", - "//common/rust/zeus:zeus_client", - ], -) - -rust_library( - name = "derived_data_client_library", - srcs = glob([ - "client/lib/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/common/facebook/thrift_client:thrift_client", - "//eden/mononoke/derived_data:derived_data_remote", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust-clients", - "//eden/mononoke/server/context:context", - "//fb303/thrift:fb303_core-rust", - ], -) - -rust_binary( - name = "2ds_client", - srcs = glob(["client/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:env_logger", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:log", - ":derived_data_client_library", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_binary( - name = "derivation_worker", - srcs = glob(["workers/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_repos:mononoke_repos", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derivation_queues:repo_derivation_queues", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - "//zeus/rust/lib:zeus_rust_lib_log", - ], -) - -tw.container( - name = "tw.mononoke.derived_data_service", - features = [ - tw.build_fbpkg( - fbpkg.builder( - name = "mononoke.derived_data_service", - path_actions = { - "derivation_worker": ":derivation_worker", - "derived_data_service": ":derived_data_service", - }, - ), - ), - ], - oncall = "scm_server_infra", -) - -tw.container( - name = "tw.mononoke.derived_data_service.stats_collector", - features = [ - tw.build_fbpkg( - fbpkg.builder( - name = "mononoke.derived_data_service.stats_collector", - path_actions = { - "derived_data_service_stats_collector": ":derived_data_service_stats_collector", - }, - ), - ), - ], - oncall = "scm_server_infra", -) diff --git a/eden/mononoke/facebook/employee_service/TARGETS b/eden/mononoke/facebook/employee_service/TARGETS deleted file mode 100644 index 2ccf850e3cc4a..0000000000000 --- a/eden/mononoke/facebook/employee_service/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "employee_service", - srcs = [ - "lib.rs", - "mock.rs", - "prod.rs", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/fbinit:fbinit", - "//employee/if:thrift-rust-clients", - "//employee/if:thrift-rust-srclients", - ], -) diff --git a/eden/mononoke/facebook/fbpkg/TARGETS b/eden/mononoke/facebook/fbpkg/TARGETS deleted file mode 100644 index 91b41af5578ee..0000000000000 --- a/eden/mononoke/facebook/fbpkg/TARGETS +++ /dev/null @@ -1,286 +0,0 @@ -load("//eden/mononoke/facebook/fbpkg:lib.bzl", "mononoke_fbpkg") -load("//fbpkg:fbpkg.bzl", "fbpkg") -load("//tupperware/cm/antlir2/bzl:buck2_container.bzl", "tw") -load("//tupperware/config/common:tw.mixin.zkdaemon.bzl", zkdaemon_mixin = "mixin") - -oncall("scm_server_infra") - -mononoke_fbpkg( - name = "mononoke.server", - path_actions = { - "mononoke": "fbcode//eden/mononoke:mononoke", - }, -) - -mononoke_fbpkg( - name = "mononoke.scs_server", - path_actions = { - # deps temporarily needed to satisfy metagit repo creation reqs - "hipstercli": "fbcode//infrasec/authorization/tools/py/hipstercli:hipstercli", - "oncalls": "fbcode//oncall/py:oncalls", - "scmadmin": "fbcode//scm/scmadmin:client", - # actual scs server binary - "scs_server": "fbcode//eden/mononoke/scs/scs_server:scs_server", - }, -) - -mononoke_fbpkg( - name = "mononoke.admin", - compress_type = None, - path_actions = { - "admin": "//eden/mononoke/tools/admin:admin", - "newadmin": fbpkg.symlink("admin"), - }, -) - -mononoke_fbpkg( - name = "mononoke.blobpacker", - compress_type = None, - path_actions = { - "mononoke_pack_similar_blobs_download.par": "//eden/mononoke/facebook/mononoke_pack_similar_blobs_download:hive_similar_blobs_downloader", - "packer": "//eden/mononoke:packer", - }, -) - -mononoke_fbpkg( - name = "mononoke.blobstore_healer", - path_actions = { - "blobstore_healer": "//eden/mononoke:blobstore_healer", - }, -) - -mononoke_fbpkg( - name = "mononoke.hg-sync-job", - path_actions = { - "mononoke_hg_sync_job": "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job", - }, -) - -mononoke_fbpkg( - name = "mononoke.lfs_server", - path_actions = { - "lfs_server": "//eden/mononoke/lfs_server:lfs_server", - }, -) - -mononoke_fbpkg( - name = "mononoke.async_requests_worker", - path_actions = { - "async_requests_worker": "//eden/mononoke/async_requests/worker:worker", - }, -) - -mononoke_fbpkg( - name = "mononoke.megarepotool", - path_actions = { - "megarepotool": "//eden/mononoke/commit_rewriting/megarepo:megarepotool", - }, -) - -mononoke_fbpkg( - name = "mononoke.microwave", - compress_type = None, - path_actions = { - "builder": "//eden/mononoke/microwave:builder", - }, -) - -mononoke_fbpkg( - name = "mononoke.new_streaming_clone", - path_actions = { - "new_streaming_clone": "//eden/mononoke/streaming_clone:new_streaming_clone", - }, -) - -mononoke_fbpkg( - name = "mononoke.sqlblob_gc", - compress_type = None, - path_actions = { - "sqlblob_gc": "//eden/mononoke:sqlblob_gc", - "sqlblob_gc_py.par": "//eden/mononoke/facebook/sqlblob_gc_py:sqlblob_gc_py", - }, -) - -mononoke_fbpkg( - name = "mononoke.blob_cleanup", - compress_type = None, - path_actions = { - "blob_deletion": "//eden/mononoke/tools/admin:admin", - "blobkey_copy.par": "//eden/mononoke/facebook/blobstore_deletion:manifold_copy", - "blobkey_download.par": "//eden/mononoke/facebook/blobstore_deletion:manifold_key_download", - }, -) - -mononoke_fbpkg( - name = "mononoke.statistics_collector", - path_actions = { - "statistics_collector": "//eden/mononoke:statistics_collector", - }, -) - -mononoke_fbpkg( - name = "mononoke.walker", - path_actions = { - "walker": "//eden/mononoke/walker:walker", - }, -) - -mononoke_fbpkg( - name = "mononoke.x-repo-backsync", - path_actions = { - "backsyncer_cmd": "//eden/mononoke/commit_rewriting/backsyncer:backsyncer_cmd", - }, -) - -mononoke_fbpkg( - name = "mononoke.x-repo-bookmarks-validator", - path_actions = { - "bookmarks_validator": "//eden/mononoke/commit_rewriting/bookmarks_validator:bookmarks_validator", - }, -) - -mononoke_fbpkg( - name = "mononoke.x-repo-commit-validator", - path_actions = { - "commit_validator": "//eden/mononoke/commit_rewriting/commit_validator:commit_validator", - }, -) - -mononoke_fbpkg( - name = "mononoke.x-repo-sync-job", - path_actions = { - "mononoke_x_repo_sync_job": "//eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job:mononoke_x_repo_sync_job", - }, -) - -mononoke_fbpkg( - name = "mononoke.example_commit_tailer", - compress_type = None, - override_log_paths = ["eden/mononoke/facebook/post_commit_tailer"], - path_actions = { - "example_commit_tailer.par": "//eden/mononoke/facebook/post_commit_tailer:example_commit_tailer", - "swift": "//scribeutil/swift:swift", - }, -) - -mononoke_fbpkg( - name = "mononoke.fbsource_commit_tailer", - compress_type = None, - override_log_paths = [ - "eden/mononoke/facebook/post_commit_tailer", - "eden/mononoke/facebook/fbsource_commit_tailer", - ], - path_actions = { - "fbsource_commit_tailer.par": "//eden/mononoke/facebook/fbsource_commit_tailer:fbsource_commit_tailer", - "swift": "//scribeutil/swift:swift", - }, -) - -mononoke_fbpkg( - name = "mononoke.whatsapp_commit_tailer", - compress_type = None, - override_log_paths = [ - "eden/mononoke/facebook/post_commit_tailer", - "eden/mononoke/facebook/whatsapp_commit_tailer", - ], - path_actions = { - "swift": "//scribeutil/swift:swift", - "whatsapp_commit_tailer.par": "//eden/mononoke/facebook/whatsapp_commit_tailer:whatsapp_commit_tailer", - }, -) - -mononoke_fbpkg( - name = "mononoke.review-bookmarks", - compress_type = None, - override_log_paths = ["eden/mononoke/facebook/monitoring"], - path_actions = { - "listserverbookmarks": "//eden/mononoke/facebook/monitoring:listserverbookmarks", - "review-bookmarks.par": "//eden/mononoke/facebook/monitoring:review-bookmarks", - }, -) - -mononoke_fbpkg( - name = "mononoke.backfill_bonsai_blob_mapping", - compress_type = None, - path_actions = { - "backfill_bonsai_blob_mapping": "//eden/mononoke/tools/facebook/backfill_bonsai_blob_mapping:backfill_bonsai_blob_mapping", - }, -) - -mononoke_fbpkg( - name = "mononoke.gitimport", - compress_type = None, - path_actions = { - "gitimport": "//eden/mononoke/git/gitimport:gitimport", - }, -) - -mononoke_fbpkg( - name = "mononoke.gitexport", - compress_type = None, - path_actions = { - "gitexport": "//eden/mononoke/git/gitexport:gitexport", - }, -) - -mononoke_fbpkg( - name = "mononoke.bookmark_service", - path_actions = { - "bookmark_service_server": "//eden/mononoke/facebook/bookmark_service:bookmark_service_server", - }, -) - -mononoke_fbpkg( - name = "mononoke.cas_sync_job", - path_actions = { - "mononoke_cas_sync_job": "//eden/mononoke/mononoke_cas_sync_job:mononoke_cas_sync_job", - }, -) - -tw.container( - name = "tw.mononoke.git_server", - features = [ - tw.build_fbpkg( - mononoke_fbpkg( - name = "mononoke.git_server", - path_actions = { - "git_server": "//eden/mononoke/git_server:git_server", - }, - ), - ), - ], - oncall = "scm_server_infra", -) - -tw.container( - name = "tw.mononoke.modern_sync_job", - features = [ - tw.build_fbpkg( - mononoke_fbpkg( - name = "mononoke.modern_sync_job", - path_actions = { - "mononoke_modern_sync_job": "//eden/mononoke/modern_sync:mononoke_modern_sync_job", - }, - ), - ), - ], - oncall = "scm_server_infra", -) - -tw.container( - name = "tw.mononoke.git_server_push_poller", - custom_image_opts = tw.image.opts(), - features = [ - tw.build_fbpkg( - mononoke_fbpkg( - name = "mononoke.git_server_push_poller", - path_actions = { - "git_server_push_poller": "//eden/mononoke/facebook/git_server/push_poller:git_server_push_poller", - }, - ), - ), - ], - mixins = [zkdaemon_mixin], - oncall = "scm_server_infra", - parent = "//tupperware/image/source_control:scm", -) diff --git a/eden/mononoke/facebook/fbsource_commit_tailer/TARGETS b/eden/mononoke/facebook/fbsource_commit_tailer/TARGETS deleted file mode 100644 index 49e3ee102bd5e..0000000000000 --- a/eden/mononoke/facebook/fbsource_commit_tailer/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") - -oncall("scm_server_infra") - -python_binary( - name = "fbsource_commit_tailer", - srcs = glob(["*.py"]), - main_function = "eden.mononoke.facebook.fbsource_commit_tailer.tailer.main", - deps = [ - "fbsource//third-party/pypi/aiohttp:aiohttp", - "//eden/mononoke/facebook/mononoke_config:mononoke_config", - "//eden/mononoke/facebook/post_commit_tailer:post_commit_tailer", - "//eden/mononoke/scs/if:source_control-py3-clients", - "//eden/mononoke/scs/if:source_control-py3-types", - "//employee/if:thrift-py3-clients", - "//justknobs:pyjustknobs", - "//libfb/py/asyncio:sandcastle", - "//libfb/py/asyncio:thrift", - ], -) - -python_unittest( - name = "fbsource_commit_tailer_test", - srcs = ["tailer_test.py"], - deps = [ - ":fbsource_commit_tailer-library", - ], -) diff --git a/eden/mononoke/facebook/git_server/push_poller/TARGETS b/eden/mononoke/facebook/git_server/push_poller/TARGETS deleted file mode 100644 index 7aea4c3d1ac7a..0000000000000 --- a/eden/mononoke/facebook/git_server/push_poller/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "git_server_push_poller", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:slog-envlogger", - "fbsource//third-party/rust:tokio", - "//common/rust/logging:logging", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/services:services", - "//common/rust/shed/slog_glog_fmt:slog_glog_fmt", - "//common/rust/shed/stats:stats", - "//eden/mononoke/facebook/git_server/push_poller/lib/poller:poller", - ], -) diff --git a/eden/mononoke/facebook/git_server/push_poller/lib/command/TARGETS b/eden/mononoke/facebook/git_server/push_poller/lib/command/TARGETS deleted file mode 100644 index b9b7884f5d116..0000000000000 --- a/eden/mononoke/facebook/git_server/push_poller/lib/command/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "command", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:nix", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:wait-timeout", - "//common/rust/logging:logging", - ], -) diff --git a/eden/mononoke/facebook/git_server/push_poller/lib/ephemeral_shard/TARGETS b/eden/mononoke/facebook/git_server/push_poller/lib/ephemeral_shard/TARGETS deleted file mode 100644 index ce43732381d7f..0000000000000 --- a/eden/mononoke/facebook/git_server/push_poller/lib/ephemeral_shard/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "ephemeral_shard", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "//common/rust/configerator:configerator_client", - "//common/rust/mysql:ephemeral_shards", - "//common/rust/mysql:mysql_client", - "//common/rust/shed/fbinit:fbinit", - "//configerator/structs/mysql:table_schema-rust", - "//dba/aosc/if:if-aosc-rust-srclients", - ], -) diff --git a/eden/mononoke/facebook/git_server/push_poller/lib/poller/TARGETS b/eden/mononoke/facebook/git_server/push_poller/lib/poller/TARGETS deleted file mode 100644 index 5ad80d68be971..0000000000000 --- a/eden/mononoke/facebook/git_server/push_poller/lib/poller/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "poller", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/logging:logging", - "//common/rust/mysql:mysql_client", - "//common/rust/scuba:scuba", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/stats:stats", - "//configerator/structs/fi/common:context-rust", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/facebook/git_server/push_poller/lib/ephemeral_shard:ephemeral_shard", - "//eden/mononoke/facebook/git_server/push_poller/lib/repository:repository", - "//eden/mononoke/facebook/git_server/push_poller/lib/storage:storage", - "//eden/mononoke/git_source_of_truth:git_source_of_truth", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/facebook/git_server/push_poller/lib/repository/TARGETS b/eden/mononoke/facebook/git_server/push_poller/lib/repository/TARGETS deleted file mode 100644 index ebf344b5b7389..0000000000000 --- a/eden/mononoke/facebook/git_server/push_poller/lib/repository/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repository", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tokio", - "//common/rust/logging:logging", - "//common/rust/mysql:mysql_client", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/facebook/git_server/push_poller/lib/command:command", - "//eden/mononoke/facebook/git_server/push_poller/lib/storage:storage", - ], -) diff --git a/eden/mononoke/facebook/git_server/push_poller/lib/storage/TARGETS b/eden/mononoke/facebook/git_server/push_poller/lib/storage/TARGETS deleted file mode 100644 index 0aecb0affc4f8..0000000000000 --- a/eden/mononoke/facebook/git_server/push_poller/lib/storage/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "storage", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:tracing", - "//common/rust/mysql:mysql_client", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/sql:sql_common", - "//dba/rust/common/smc_models:smc_models", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/facebook/git_server/push_poller/lib/ephemeral_shard:ephemeral_shard", - ], -) diff --git a/eden/mononoke/facebook/manifoldblob/TARGETS b/eden/mononoke/facebook/manifoldblob/TARGETS deleted file mode 100644 index c7c5937571a63..0000000000000 --- a/eden/mononoke/facebook/manifoldblob/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "manifoldblob", - srcs = glob(["src/*.rs"]), - named_deps = { - "clap-old": "fbsource//third-party/rust:clap-2", - }, - test_deps = [ - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:rand", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/server/context:context", - "//manifold/clients/rust:manifold_client", - ], -) diff --git a/eden/mononoke/facebook/mirror_hg_commits/TARGETS b/eden/mononoke/facebook/mirror_hg_commits/TARGETS deleted file mode 100644 index 9140345a45b2f..0000000000000 --- a/eden/mononoke/facebook/mirror_hg_commits/TARGETS +++ /dev/null @@ -1,59 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -rust_binary( - name = "mirror_hg_commits", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib:cmdlib", - "//eden/mononoke/cmdlib:cmdlib_cross_repo", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/time_measuring:time_measuring", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api:commit_transformation", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) - -fbpkg.builder( - name = "mononoke.mirror_hg_commits", - path_actions = { - "mirror_hg_commits": ":mirror_hg_commits", - }, -) diff --git a/eden/mononoke/facebook/monitoring/TARGETS b/eden/mononoke/facebook/monitoring/TARGETS deleted file mode 100644 index 3ae939e73488b..0000000000000 --- a/eden/mononoke/facebook/monitoring/TARGETS +++ /dev/null @@ -1,44 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup") -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") - -oncall("scm_server_infra") - -python_binary( - name = "review-bookmarks", - srcs = [ - "review_bookmarks.py", - ], - main_function = "eden.mononoke.facebook.monitoring.review_bookmarks.main_2", - deps = [ - ":lib", - "//libfb/py:log", - "//rfe/scubadata:scubadata_py3", - "//thrift/lib/py:server_base", - ], -) - -python_library( - name = "lib", - srcs = ["lib.py"], - deps = [ - "//libfb/py:decorators", - ], -) - -python_unittest( - name = "test", - srcs = ["test.py"], - deps = [ - ":lib", - "//libfb/py:testutil", - ], -) - -buck_filegroup( - name = "listserverbookmarks", - srcs = [ - "listserverbookmarks.py", - ], -) diff --git a/eden/mononoke/facebook/mononoke-bootstrap/TARGETS b/eden/mononoke/facebook/mononoke-bootstrap/TARGETS deleted file mode 100644 index 9580a03372a5b..0000000000000 --- a/eden/mononoke/facebook/mononoke-bootstrap/TARGETS +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup", "buck_genrule", "buck_sh_test") -load("//eden/mononoke/facebook/mononoke-bootstrap:lib.bzl", "binaries_cmd", "env_for_binaries") - -oncall("scm_server_infra") - -buck_sh_test( - name = "check", - args = [ - "$(location //eden/mononoke/facebook/mononoke-bootstrap:mononoke-bootstrap)", - ], - # Those are used to expose Buck-built binary to mononoke-bootstrap. - # Normally, we don't use those, but we do it for tests. - env = env_for_binaries([ - ("tools/admin", "admin"), - ]), - test = "check.sh", -) - -buck_filegroup( - name = "mononoke-bootstrap", - srcs = glob([ - "**/*.sh", - ]), -) - -buck_genrule( - name = "binaries", - out = "env.txt", - # If the env.txt output is stored in cache then we won't build the binaries - # and will instead fetch just the manifest. However, if the cache was - # populated by sandcastle, then the paths inside of env.txt will point to - # sandcastle's buck-out dir. - # - # Disable caching to prevent these issues. - cacheable = False, - cmd = binaries_cmd([ - (".", "mononoke"), - ("git/gitimport", "gitimport"), - ("lfs_server", "lfs_server"), - ("scs/scs_server", "scs_server"), - ("tools/admin", "admin"), - ]), -) diff --git a/eden/mononoke/facebook/mononoke_config/TARGETS b/eden/mononoke/facebook/mononoke_config/TARGETS deleted file mode 100644 index e6219b598f2fd..0000000000000 --- a/eden/mononoke/facebook/mononoke_config/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_server_infra") - -python_library( - name = "mononoke_config", - srcs = [ - "mononoke_config.py", - ], - deps = [ - "fbsource//third-party/pypi/toml:toml", - "//configerator/distribution/api/py:configerator_config", - "//configerator/structs/scm/mononoke/repos:repos-py-deprecated", - ], -) - -python_binary( - name = "mononoke_find_repo_id", - srcs = [ - "mononoke_find_repo_id.py", - ], - main_function = "eden.mononoke.facebook.mononoke_config.mononoke_find_repo_id.main_2", - deps = [ - ":mononoke_config", - ], -) diff --git a/eden/mononoke/facebook/mononoke_pack_similar_blobs_download/TARGETS b/eden/mononoke/facebook/mononoke_pack_similar_blobs_download/TARGETS deleted file mode 100644 index edb0b93e99fba..0000000000000 --- a/eden/mononoke/facebook/mononoke_pack_similar_blobs_download/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") - -oncall("scm_server_infra") - -python_binary( - name = "hive_similar_blobs_downloader", - srcs = ["hive_similar_blobs_downloader.py"], - main_function = "eden.mononoke.facebook.mononoke_pack_similar_blobs_download.hive_similar_blobs_downloader.main", - deps = [ - "//datainfra/presto/py:client_lib", - ], -) diff --git a/eden/mononoke/facebook/phabricator/TARGETS b/eden/mononoke/facebook/phabricator/TARGETS deleted file mode 100644 index 7e39ae34fd69b..0000000000000 --- a/eden/mononoke/facebook/phabricator/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "phabricator", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "//common/rust/interngraph:interngraph", - "//common/rust/shed/fbinit:fbinit", - "//configerator/structs/infrasec/if:acl-rust", - "//crypto/cat/rust:cryptocat", - "//eden/mononoke/permission_checker:permission_checker", - ], -) diff --git a/eden/mononoke/facebook/post_commit_tailer/TARGETS b/eden/mononoke/facebook/post_commit_tailer/TARGETS deleted file mode 100644 index 945bbd92d1820..0000000000000 --- a/eden/mononoke/facebook/post_commit_tailer/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_server_infra") - -python_library( - name = "post_commit_tailer", - srcs = ["tailer.py"], - deps = [ - "//dsi/reader/py:logger_pyreader", - "//eden/mononoke/facebook/mononoke_config:mononoke_config", - "//eden/mononoke/scs/if:source_control-py3-clients", - "//eden/mononoke/scs/if:source_control-py3-types", - "//libfb/py/asyncio:thrift", - "//stylus/tailerswift/annotation_helper/client/python:swift_lineage_logger", - "//stylus/tailerswift/annotation_helper/if:data_lineage-py3-types", - ], -) - -python_binary( - name = "example_commit_tailer", - srcs = [ - "example_tailer.py", - ], - main_function = "eden.mononoke.facebook.post_commit_tailer.example_tailer.main", - deps = [ - ":post_commit_tailer", - ], -) diff --git a/eden/mononoke/facebook/replay/TARGETS b/eden/mononoke/facebook/replay/TARGETS deleted file mode 100644 index c4afe1b9883ce..0000000000000 --- a/eden/mononoke/facebook/replay/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("//windtunnel/cogwheel:defs.bzl", "cogwheel_test", "create_cogwheel_config") - -oncall("scm_server_infra") - -cogwheel_test( - name = "cogwheel_edenapi_replay_test", - srcs = [ - "EdenAPIReplayTest.py", - ], - main_function = "eden.mononoke.facebook.replay.EdenAPIReplayTest.main", - workload_config = create_cogwheel_config( - ab_test = True, - configerator_path_prefix_triggers = [ - "source/scm/mononoke/repos", - ], - # Give the task 25 minutes to pass the health check - confirm_alloc_timeout = 1500, - entitlement_name = "mononoke", - # Give the task 45 minutes to execute the test - execution_timeout_seconds = 2700, - fbcode_path_prefix_triggers = [ - "tupperware/config/scm/mononoke/common.cinc", - "tupperware/config/scm/mononoke/mononoke_server.tw", - ], - fbpkg_builders = ["//eden/mononoke/facebook/fbpkg:mononoke.server"], - oncall = "scm_server_infra", - tupperware_spec = ( - "scm/mononoke/eden_replay.cinc" - ), - ), - deps = [ - "fbsource//third-party/pypi/aiohttp:aiohttp", - "fbsource//third-party/pypi/cbor2:cbor2", - "//libfb/py:employee", - "//libfb/py/thrift_clients:oncall_thrift_client", - "//rfe:rfe_thrift-py3-types", - "//rfe/py/lib:sql", - "//windtunnel/cogwheel:test", - "//windtunnel/cogwheel/helpers:smc", - "//windtunnel/cogwheel/lib:logging", - ], -) diff --git a/eden/mononoke/facebook/reposynthesizer/TARGETS b/eden/mononoke/facebook/reposynthesizer/TARGETS deleted file mode 100644 index 1d6d37d7287f9..0000000000000 --- a/eden/mononoke/facebook/reposynthesizer/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") - -oncall("scm_server_infra") - -python_binary( - name = "reposynthesizer", - srcs = ["reposynthesizer.py"], - main_function = "eden.mononoke.facebook.reposynthesizer.reposynthesizer.main", - deps = [ - "//scm/lib:repo", - ], -) diff --git a/eden/mononoke/facebook/s3pool/TARGETS b/eden/mononoke/facebook/s3pool/TARGETS deleted file mode 100644 index abac63fa8ec28..0000000000000 --- a/eden/mononoke/facebook/s3pool/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "s3pool", - srcs = glob(["src/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:log", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rusoto_core", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/smc-thrift:smc-thrift", - "//common/smc/if:if-rust", - "//crypto/keychain_service:if-rust", - "//crypto/keychain_service:if-rust-clients", - "//crypto/keychain_service:if-rust-srclients", - "//eden/mononoke/blobstore:s3blob", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/facebook/scripts/TARGETS b/eden/mononoke/facebook/scripts/TARGETS deleted file mode 100644 index 4a1a1b77ab132..0000000000000 --- a/eden/mononoke/facebook/scripts/TARGETS +++ /dev/null @@ -1,37 +0,0 @@ -load("@fbcode_macros//build_defs:custom_unittest.bzl", "custom_unittest") -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup") -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -buck_filegroup( - name = "scripts", - srcs = glob([ - "**/*.sh", - "**/*.py", - ]), -) - -buck_filegroup( - name = "hg_wireproto_requests_wrapper", - srcs = ["hg_wireproto_requests_wrapper.sh"], -) - -fbpkg.builder( - name = "mononoke.scripts", - architectures = ["noarch"], - override_log_paths = [ - "eden/mononoke/facebook/scripts", - ], - path_actions = { - "scripts": ":scripts", - }, -) - -custom_unittest( - name = "setup_common_test", - command = [ - "eden/mononoke/facebook/scripts/setup_common_test.sh", - ], - type = "simple", -) diff --git a/eden/mononoke/facebook/slow_bookmark_mover/TARGETS b/eden/mononoke/facebook/slow_bookmark_mover/TARGETS deleted file mode 100644 index 6b809e9ba3014..0000000000000 --- a/eden/mononoke/facebook/slow_bookmark_mover/TARGETS +++ /dev/null @@ -1,47 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -rust_binary( - name = "slow_bookmark_mover", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib:cmdlib", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/time_measuring:time_measuring", - "//eden/mononoke/common/topo_sort:topo_sort", - "//eden/mononoke/mercurial:mercurial_mutation", - "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job_helper_lib", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -fbpkg.builder( - name = "mononoke.slow_bookmark_mover", - path_actions = { - "slow_bookmark_mover": ":slow_bookmark_mover", - }, -) diff --git a/eden/mononoke/facebook/sparse_size_commit_tailer/TARGETS b/eden/mononoke/facebook/sparse_size_commit_tailer/TARGETS deleted file mode 100644 index 06d765e726a45..0000000000000 --- a/eden/mononoke/facebook/sparse_size_commit_tailer/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -python_binary( - name = "sparse_size_commit_tailer", - srcs = [ - "tailer.py", - ], - main_function = "eden.mononoke.facebook.sparse_size_commit_tailer.tailer.main", - deps = [ - "//configerator/distribution/api/py:configerator_config", - "//configerator/structs/scm/mononoke/repos:repos-py-deprecated", - "//eden/mononoke/facebook/post_commit_tailer:post_commit_tailer", - "//eden/mononoke/scs/if:source_control-py3-clients", - "//eden/mononoke/scs/if:source_control-py3-types", - "//justknobs:pyjustknobs", - "//libfb/py:build_info", - "//libfb/py/asyncio:mysql", - "//libfb/py/asyncio:thrift", - "//rfe/scubadata:scubadata_py3", - "//stylus/tailerswift/annotation_helper/if:data_lineage-py3-types", - ], -) - -fbpkg.builder( - name = "mononoke.sparse_size_commit_tailer", - path_actions = { - "sparse_size_commit_tailer": ":sparse_size_commit_tailer", - "swift": "//scribeutil/swift:swift", - }, -) diff --git a/eden/mononoke/facebook/sqlblob_gc_py/TARGETS b/eden/mononoke/facebook/sqlblob_gc_py/TARGETS deleted file mode 100644 index 4043567fc0599..0000000000000 --- a/eden/mononoke/facebook/sqlblob_gc_py/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") - -oncall("scm_server_infra") - -python_binary( - name = "sqlblob_gc_py", - srcs = glob([ - "*.py", - ]), - main_function = "eden.mononoke.facebook.sqlblob_gc_py.main.main", - deps = [ - "//configerator/common:crypto_utils", - "//configerator/configo/client/thrift_py3:client", - "//configerator/distribution/api/py:configerator_config", - "//configerator/structs/scm/mononoke/xdb_gc:xdb_gc_structs-py-deprecated", - "//dba/asyncio:bulk_dml", - "//libfb/py/asyncio:limit_concurrency", - "//libfb/py/asyncio:mysql", - ], - external_deps = [ - ], -) diff --git a/eden/mononoke/facebook/whatsapp_commit_tailer/TARGETS b/eden/mononoke/facebook/whatsapp_commit_tailer/TARGETS deleted file mode 100644 index 319715b1d43b8..0000000000000 --- a/eden/mononoke/facebook/whatsapp_commit_tailer/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") - -oncall("scm_server_infra") - -python_binary( - name = "whatsapp_commit_tailer", - srcs = glob(["*.py"]), - main_function = "eden.mononoke.facebook.whatsapp_commit_tailer.tailer.main", - deps = [ - "//eden/mononoke/facebook/mononoke_config:mononoke_config", - "//eden/mononoke/facebook/post_commit_tailer:post_commit_tailer", - "//eden/mononoke/scs/if:source_control-py3-clients", - "//eden/mononoke/scs/if:source_control-py3-types", - "//employee/if:thrift-py3-clients", - "//gatekeeper/py:client", - "//libfb/py:employee", - "//libfb/py/asyncio:sandcastle", - "//libfb/py/asyncio:thrift", - ], -) diff --git a/eden/mononoke/features/history_traversal/TARGETS b/eden/mononoke/features/history_traversal/TARGETS deleted file mode 100644 index 3e4e8dace2426..0000000000000 --- a/eden/mononoke/features/history_traversal/TARGETS +++ /dev/null @@ -1,52 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "history_traversal", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:futures-util", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:blame", - "//eden/mononoke/derived_data:deleted_manifest", - "//eden/mononoke/derived_data:derived_data", - "//eden/mononoke/derived_data:fastlog", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_renames:mutable_renames", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/features/redaction/TARGETS b/eden/mononoke/features/redaction/TARGETS deleted file mode 100644 index 07bdb2b80d5dc..0000000000000 --- a/eden/mononoke/features/redaction/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "redaction", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:redactedblobstore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/features/repo_metadata/TARGETS b/eden/mononoke/features/repo_metadata/TARGETS deleted file mode 100644 index cb469e18314c9..0000000000000 --- a/eden/mononoke/features/repo_metadata/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "repo_metadata", - srcs = glob(["src/**/*.rs"]), - deps = ([ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:clap", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/common/dedupmap:dedupmap", - "//eden/mononoke/derived_data:blame", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_metadata_checkpoint:repo_metadata_checkpoint", - "//eden/mononoke/server/context:context", - "//eden/mononoke/derived_data:unodes", - ] + ([] if rust_oss.is_oss_build() else [ - "//dsi/logger/configs/SCMRepoMetadataV2LoggerConfig:s_c_m_repo_metadata_v2_rust_logger", - ])), -) diff --git a/eden/mononoke/features/repo_update_logger/TARGETS b/eden/mononoke/features/repo_update_logger/TARGETS deleted file mode 100644 index 57f3de0eb1cd1..0000000000000 --- a/eden/mononoke/features/repo_update_logger/TARGETS +++ /dev/null @@ -1,52 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_update_logger", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "//common/rust/shed/hostname:hostname", - "//dsi/logger/configs/GitRefLoggerConfig:git_ref_rust_logger", - "//dsi/logger/configs/MononokeBookmarkLoggerConfig:mononoke_bookmark_rust_logger", - "//dsi/logger/configs/MononokeNewCommitLoggerConfig:mononoke_new_commit_rust_logger", - "//dsi/logger/cpp/interface:whence_logged-rust", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/common/logger_ext:logger_ext", - "//eden/mononoke/git_source_of_truth:git_source_of_truth", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/phases:phases", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/filenodes/TARGETS b/eden/mononoke/filenodes/TARGETS deleted file mode 100644 index 18e54c8943983..0000000000000 --- a/eden/mononoke/filenodes/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "filenodes", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:quickcheck", - "//common/rust/shed/facet:facet", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - "//eden/mononoke/filenodes/if:filenodes-if-rust", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/filenodes/if/TARGETS b/eden/mononoke/filenodes/if/TARGETS deleted file mode 100644 index cbde0f90c9085..0000000000000 --- a/eden/mononoke/filenodes/if/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "filenodes-if", - languages = [ - "rust", - "cpp2", - ], - rust_deps = [ - "fbsource//third-party/rust:smallvec", - ], - thrift_srcs = { - "filenodes.thrift": [], - }, - # The Thrift definitions are private and only used for serialization -- do - # not allow other code to use them. - visibility = [ - "//eden/mononoke/derived_data/remote/if:", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filenodes:filenodes-unittest", - ], - deps = [ - "//eden/mononoke/mercurial/types/if:mercurial-thrift", - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/filestore/TARGETS b/eden/mononoke/filestore/TARGETS deleted file mode 100644 index 9caeff4e63e7c..0000000000000 --- a/eden/mononoke/filestore/TARGETS +++ /dev/null @@ -1,46 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "filestore", - srcs = glob(["src/**/*.rs"]), - named_deps = { - "blake3-constants": "//blake3:blake3-constants-rust-nothrift", - }, - test_deps = [ - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:blake3", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:digest", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:sha2", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/edenapi/types:edenapi_types", - ], -) diff --git a/eden/mononoke/git/check_git_wc/TARGETS b/eden/mononoke/git/check_git_wc/TARGETS deleted file mode 100644 index 885b26119ef5e..0000000000000 --- a/eden/mononoke/git/check_git_wc/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "check_git_wc", - srcs = glob(["src/**/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:either", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:git2", - "fbsource//third-party/rust:sha2", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-stream", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data/content_manifest_derivation:content_manifest_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/git/facebook/TARGETS b/eden/mononoke/git/facebook/TARGETS deleted file mode 100644 index 611067a32c710..0000000000000 --- a/eden/mononoke/git/facebook/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -fbpkg.builder( - name = "mononoke.remotegitimport", - architectures = [ - "aarch64", - "x86_64", - ], - path_actions = { - "git_move_bookmark": "//eden/mononoke/git/facebook/git_move_bookmark:git_move_bookmark", - "remote_gitimport": "//eden/mononoke/git/facebook/remote_gitimport:remote_gitimport", - }, -) diff --git a/eden/mononoke/git/facebook/git_move_bookmark/TARGETS b/eden/mononoke/git/facebook/git_move_bookmark/TARGETS deleted file mode 100644 index af17bca335b6d..0000000000000 --- a/eden/mononoke/git/facebook/git_move_bookmark/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "git_move_bookmark", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/git/facebook/scs_connection:scs_connection", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/scs/if:source_control-rust-clients", - ], -) diff --git a/eden/mononoke/git/facebook/pushrebase/TARGETS b/eden/mononoke/git/facebook/pushrebase/TARGETS deleted file mode 100644 index 84549dd05528c..0000000000000 --- a/eden/mononoke/git/facebook/pushrebase/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_universal_binary.bzl", "rust_universal_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "git_pushrebase", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:tracing-core", - "fbsource//third-party/rust:tracing-glog", - "fbsource//third-party/rust:tracing-subscriber", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - ], -) - -rust_universal_binary( - name = "git_universal_pushrebase", - source = ":git_pushrebase", -) diff --git a/eden/mononoke/git/facebook/remote_gitimport/TARGETS b/eden/mononoke/git/facebook/remote_gitimport/TARGETS deleted file mode 100644 index 580266c7730c0..0000000000000 --- a/eden/mononoke/git/facebook/remote_gitimport/TARGETS +++ /dev/null @@ -1,52 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "remote_gitimport", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:dns-lookup", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:hyper", - "fbsource//third-party/rust:hyper-openssl", - "fbsource//third-party/rust:openssl", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:tokio", - "//common/rust/monitoring:obc_lib", - "//common/rust/scuba:scuba", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/slog_glog_fmt:slog_glog_fmt", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/thrift/srclient:srclient", - "//eden/mononoke/cmdlib/config_args:config_args", - "//eden/mononoke/cmdlib/mononoke_app/tls:tls", - "//eden/mononoke/common/retry:retry", - "//eden/mononoke/git/facebook/scs_connection:scs_connection", - "//eden/mononoke/git/import_tools:import_tools", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:config_only_repo_factory", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/scs/if:source_control-rust-clients", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/repo/url:repourl", - ], -) diff --git a/eden/mononoke/git/facebook/scs_connection/TARGETS b/eden/mononoke/git/facebook/scs_connection/TARGETS deleted file mode 100644 index 6491bfd42561c..0000000000000 --- a/eden/mononoke/git/facebook/scs_connection/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "scs_connection", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:rand", - "//common/rust/identity:identity", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/thrift/bareclient:thriftclient", - "//common/rust/thrift/srclient:srclient", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/scs/if:source_control-rust-clients", - "//eden/mononoke/scs/if:source_control-rust-srclients", - "//eden/mononoke/scs/if:source_control-rust-thriftclients", - ], -) diff --git a/eden/mononoke/git/git-pool/TARGETS b/eden/mononoke/git/git-pool/TARGETS deleted file mode 100644 index dfc7bcc57d00e..0000000000000 --- a/eden/mononoke/git/git-pool/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "git-pool", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:git2", - "fbsource//third-party/rust:num_cpus", - "fbsource//third-party/rust:r2d2", - "fbsource//third-party/rust:tokio", - ], -) diff --git a/eden/mononoke/git/git_types/TARGETS b/eden/mononoke/git/git_types/TARGETS deleted file mode 100644 index ed9f13d867d05..0000000000000 --- a/eden/mononoke/git/git_types/TARGETS +++ /dev/null @@ -1,66 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "git_types", - srcs = glob([ - "src/**/*.rs", - "test_data/**/*.txt", - ]), - test_deps = [ - "fbsource//third-party/rust:async-compression", - "fbsource//third-party/rust:futures-util", - "fbsource//third-party/rust:git2", - "fbsource//third-party/rust:indoc", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:rand_distr", - "fbsource//third-party/rust:tempfile", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:delayblob", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/tests/fixtures:fixtures", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:digest", - "fbsource//third-party/rust:flate2", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-actor", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:gix-object", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data/remote/if:derived_data_service_if-rust", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/git_types/if:git-types-thrift-rust", - "//eden/mononoke/git/packfile:packfile", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api:megarepo_error", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization-rust", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - "//eden/mononoke/third_party/git_delta:git_delta", - ], -) diff --git a/eden/mononoke/git/git_types/if/TARGETS b/eden/mononoke/git/git_types/if/TARGETS deleted file mode 100644 index 46375223e1934..0000000000000 --- a/eden/mononoke/git/git_types/if/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "git-types-thrift", - languages = [ - "rust", - "cpp2", - ], - rust_deps = [ - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:smallvec", - ], - thrift_rust_options = ["deprecated_default_enum_min_i32"], - thrift_srcs = {"git_types_thrift.thrift": []}, - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/git/gitexport/TARGETS b/eden/mononoke/git/gitexport/TARGETS deleted file mode 100644 index 9954add5ae471..0000000000000 --- a/eden/mononoke/git/gitexport/TARGETS +++ /dev/null @@ -1,109 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("source_control") - -rust_library( - name = "test_utils", - srcs = glob(["test_utils/src/*.rs"]), - autocargo = {"cargo_toml_dir": "test_utils"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], -) - -rust_unittest( - name = "tests", - srcs = glob(["tests/gitexport_tools/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:slog", - ":gitexport_tools", - ":test_utils", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/slog_glog_fmt:slog_glog_fmt", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) - -rust_library( - name = "gitexport_tools", - srcs = glob(["src/gitexport_tools/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:indicatif", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:fileblob", - "//eden/mononoke/bookmarks:warm_bookmarks_cache", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/git/packfile:packfile", - "//eden/mononoke/git/protocol:protocol", - "//eden/mononoke/git_symbolic_refs:git_symbolic_refs", - "//eden/mononoke/megarepo_api:commit_transformation", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_factory:test_repo_factory", - ], -) - -# Binary to export a subset of a mononoke repository to a git repo. -rust_binary( - name = "gitexport", - srcs = [ - "src/main.rs", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - ":gitexport_tools", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/cmdlib/commit_id:commit_id", - "//eden/mononoke/cmdlib/displaying/graph:print_graph", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:derived_data_remote", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_repos:mononoke_repos", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/repo_factory:repo_factory", - ], -) diff --git a/eden/mononoke/git/gitimport/TARGETS b/eden/mononoke/git/gitimport/TARGETS deleted file mode 100644 index b09e181549bf1..0000000000000 --- a/eden/mononoke/git/gitimport/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "gitimport", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:linked-hash-map", - "fbsource//third-party/rust:slog", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:blobrepo_override", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/import_direct:import_direct", - "//eden/mononoke/git/import_tools:import_tools", - "//eden/mononoke/git_symbolic_refs:git_symbolic_refs", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/git/import_direct/TARGETS b/eden/mononoke/git/import_direct/TARGETS deleted file mode 100644 index 5ba9ddb480d95..0000000000000 --- a/eden/mononoke/git/import_direct/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "import_direct", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:slog", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/import_tools:import_tools", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/git/import_tools/TARGETS b/eden/mononoke/git/import_tools/TARGETS deleted file mode 100644 index dfa9da6ea0a05..0000000000000 --- a/eden/mononoke/git/import_tools/TARGETS +++ /dev/null @@ -1,55 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "import_tools", - srcs = glob(["src/**/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:auto_impl", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:encoding_rs", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-actor", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:gix-object", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:hyper", - "fbsource//third-party/rust:hyper-openssl", - "fbsource//third-party/rust:linked-hash-map", - "fbsource//third-party/rust:openssl", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_movement", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/cmdlib/mononoke_app/tls:tls", - "//eden/mononoke/common/retry:retry", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/git_symbolic_refs:git_symbolic_refs", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/git/packetline/TARGETS b/eden/mononoke/git/packetline/TARGETS deleted file mode 100644 index 3f6928f648100..0000000000000 --- a/eden/mononoke/git/packetline/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "packetline", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ], -) - -rust_unittest( - name = "packetline_test", - srcs = glob(["test/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:tokio", - ":packetline", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], -) diff --git a/eden/mononoke/git/packfile/TARGETS b/eden/mononoke/git/packfile/TARGETS deleted file mode 100644 index 7df848b69c261..0000000000000 --- a/eden/mononoke/git/packfile/TARGETS +++ /dev/null @@ -1,51 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "packfile", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:flate2", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-features", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:gix-object", - "fbsource//third-party/rust:gix-pack", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rustc-hash", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/git/packfile/if:packfile-thrift-rust", - "//eden/mononoke/mononoke_types:mononoke_types", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_unittest( - name = "packfile_test", - srcs = glob(["test/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:flate2", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-features", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:gix-object", - "fbsource//third-party/rust:gix-pack", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:tempfile", - ":packfile", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/third_party/git_delta:git_delta", - ], -) diff --git a/eden/mononoke/git/packfile/if/TARGETS b/eden/mononoke/git/packfile/if/TARGETS deleted file mode 100644 index 0bdb8635000b5..0000000000000 --- a/eden/mononoke/git/packfile/if/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "packfile-thrift", - languages = [ - "rust", - "cpp2", - ], - thrift_rust_options = ["deprecated_default_enum_min_i32"], - thrift_srcs = {"packfile_thrift.thrift": []}, -) diff --git a/eden/mononoke/git/protocol/TARGETS b/eden/mononoke/git/protocol/TARGETS deleted file mode 100644 index 210c229ee4bb8..0000000000000 --- a/eden/mononoke/git/protocol/TARGETS +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "protocol", - srcs = glob(["src/**/*.rs"]), - unittests = True, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-date", - "fbsource//third-party/rust:gix-features", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:gix-object", - "fbsource//third-party/rust:gix-pack", - "fbsource//third-party/rust:rustc-hash", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/buffered_weighted:buffered_weighted", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_cache", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/git/packetline:packetline", - "//eden/mononoke/git/packfile:packfile", - "//eden/mononoke/git_symbolic_refs:git_symbolic_refs", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/git_server/TARGETS b/eden/mononoke/git_server/TARGETS deleted file mode 100644 index d26df84f5de97..0000000000000 --- a/eden/mononoke/git_server/TARGETS +++ /dev/null @@ -1,73 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "git_server", - srcs = glob(["src/**/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:flate2", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-date", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:gix-object", - "fbsource//third-party/rust:gix-packetline", - "fbsource//third-party/rust:gix-transport", - "fbsource//third-party/rust:gotham", - "fbsource//third-party/rust:gotham_derive", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:hyper", - "fbsource//third-party/rust:mime", - "fbsource//third-party/rust:rustc-hash", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-stream", - "fbsource//third-party/rust:tokio-util", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/secure_utils:secure_utils", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/caching:cmdlib_caching", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/connection_security_checker:connection_security_checker", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/topo_sort:topo_sort", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/git/import_direct:import_direct", - "//eden/mononoke/git/import_tools:import_tools", - "//eden/mononoke/git/packetline:packetline", - "//eden/mononoke/git/packfile:packfile", - "//eden/mononoke/git/protocol:protocol", - "//eden/mononoke/git_source_of_truth:git_source_of_truth", - "//eden/mononoke/gotham_ext:gotham_ext", - "//eden/mononoke/metaconfig:metaconfig_parser", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_repos:mononoke_repos", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/git_source_of_truth/TARGETS b/eden/mononoke/git_source_of_truth/TARGETS deleted file mode 100644 index f5a796f83d26a..0000000000000 --- a/eden/mononoke/git_source_of_truth/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "git_source_of_truth", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - test_deps = ([] if rust_oss.is_oss_build() else [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:strum", - "//common/rust/shed/facet:facet", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/git_symbolic_refs/TARGETS b/eden/mononoke/git_symbolic_refs/TARGETS deleted file mode 100644 index 01b0a7aca2075..0000000000000 --- a/eden/mononoke/git_symbolic_refs/TARGETS +++ /dev/null @@ -1,35 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "git_symbolic_refs", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/facet:facet", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) - -rust_unittest( - name = "git_symbolic_refs_test", - srcs = glob(["test/**/*.rs"]), - crate = "git_symbolic_refs_test", - deps = [ - "fbsource//third-party/rust:anyhow", - ":git_symbolic_refs", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], -) diff --git a/eden/mononoke/gotham_ext/TARGETS b/eden/mononoke/gotham_ext/TARGETS deleted file mode 100644 index 9c3f783db435e..0000000000000 --- a/eden/mononoke/gotham_ext/TARGETS +++ /dev/null @@ -1,53 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "gotham_ext", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-compression", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gotham", - "fbsource//third-party/rust:gotham_derive", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:hyper", - "fbsource//third-party/rust:mime", - "fbsource//third-party/rust:openssl", - "fbsource//third-party/rust:percent-encoding", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:scopeguard", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-openssl", - "fbsource//third-party/rust:tokio-util", - "fbsource//third-party/rust:trust-dns-resolver", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/cats:cats", - "//eden/mononoke/common/connection_security_checker:connection_security_checker", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/yield_stream:yield_stream", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_configs:mononoke_configs", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/quiet_stream:quiet_stream", - "//eden/mononoke/rate_limiting:rate_limiting", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/hgproto/TARGETS b/eden/mononoke/hgproto/TARGETS deleted file mode 100644 index 39cf7d2cd376a..0000000000000 --- a/eden/mononoke/hgproto/TARGETS +++ /dev/null @@ -1,35 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "hgproto", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:quickcheck", - "//eden/mononoke/mercurial:mercurial_types-mocks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - test_srcs = [ - "fixtures/min.bundle", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:nom-old", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-util", - "//eden/mononoke/mercurial:mercurial_bundles", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/qps:qps", - ], -) diff --git a/eden/mononoke/hooks/TARGETS b/eden/mononoke/hooks/TARGETS deleted file mode 100644 index c93253cf65c87..0000000000000 --- a/eden/mononoke/hooks/TARGETS +++ /dev/null @@ -1,86 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "hooks", - srcs = glob([ - "src/**/*.rs", - ]), - autocargo = { - "cargo_target_config": { - "doctest": False, - "test": False, - }, - }, - test_deps = [ - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/repo_attributes/hook_manager/repo_hook_file_content_provider:repo_hook_file_content_provider", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:fancy-regex", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:hyper", - "fbsource//third-party/rust:hyper-tls", - "fbsource//third-party/rust:ipnetwork", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:serde_regex", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/identity:identity_ext", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//configerator/structs/infrasec/if:acl-rust", - "//crypto/keychain_service:if-rust", - "//crypto/keychain_service:if-rust-srclients", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/common/facebook/thrift_client:thrift_client", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/facebook/employee_service:employee_service", - "//eden/mononoke/facebook/phabricator:phabricator", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/repo_attributes/hook_manager/hook_manager:hook_manager", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/scs/if:source_control-rust-clients", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - "//infrasec/authorization/if:if-aclchecker-rust", - "//infrasec/authorization/if:if-aclchecker-rust-clients", - "//infrasec/authorization/if:if-aclchecker-rust-srclients", - "//infrasec/authorization/if:if-service-rust-clients", - "//infrasec/authorization/if:if-service-rust-srclients", - "//security/source_control/verify_integrity:verify_integrity_client_lib", - "//security/source_control/verify_integrity/if:verify_integrity_service-rust", - "//signedsources:signedsources", - ], -) diff --git a/eden/mononoke/land_service/facebook/TARGETS b/eden/mononoke/land_service/facebook/TARGETS deleted file mode 100644 index a322b13c12813..0000000000000 --- a/eden/mononoke/land_service/facebook/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("//fbpkg:fbpkg.bzl", "fbpkg") -load("//tupperware/cm/antlir2/bzl:buck2_container.bzl", "tw") - -oncall("scm_server_infra") - -tw.container( - name = "tw.mononoke.land_service", - features = [ - tw.build_fbpkg( - fbpkg.builder( - name = "mononoke.land_service", - path_actions = { - "land_service": "//eden/mononoke/land_service/facebook/server:land_service", - }, - ), - ), - ], - oncall = "scm_server_infra", -) diff --git a/eden/mononoke/land_service/facebook/server/TARGETS b/eden/mononoke/land_service/facebook/server/TARGETS deleted file mode 100644 index a7de6ef78691c..0000000000000 --- a/eden/mononoke/land_service/facebook/server/TARGETS +++ /dev/null @@ -1,53 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "land_service", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", # For easier error handling - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/identity:identity", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//common/rust/srserver:srserver", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_movement", - "//eden/mononoke/cmdlib:cmdlib_logging", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/scribe_ext:scribe_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/hooks:hooks", - "//eden/mononoke/land_service/if:LandService-metadata-sys", - "//eden/mononoke/land_service/if:land_service_if-rust", - "//eden/mononoke/land_service/if:land_service_if-rust-services", # For easier error handling - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/pushrebase:pushrebase_client", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - "//fb303/thrift:fb303_core-rust", - "//fb303/thrift:fb303_core-rust-services", # For easier error handling - "//login/if:login_objects_thrift-rust", - ], -) diff --git a/eden/mononoke/land_service/if/TARGETS b/eden/mononoke/land_service/if/TARGETS deleted file mode 100644 index f7f65fb56fc7a..0000000000000 --- a/eden/mononoke/land_service/if/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "land_service_if", - languages = [ - "rust", - ], - rust_gen_metadata = True, - thrift_rust_options = [ - "deprecated_default_enum_min_i32", - "serde", - ], - thrift_srcs = { - "land_service.thrift": ["LandService"], - }, - deps = [ - "//fb303/thrift:fb303_core", - "//thrift/annotation:thrift", - ], -) diff --git a/eden/mononoke/lfs_import_lib/TARGETS b/eden/mononoke/lfs_import_lib/TARGETS deleted file mode 100644 index 9892b2f3c4130..0000000000000 --- a/eden/mononoke/lfs_import_lib/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "lfs_import_lib", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-util", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/lfs_protocol/TARGETS b/eden/mononoke/lfs_protocol/TARGETS deleted file mode 100644 index 6bd37d55adf31..0000000000000 --- a/eden/mononoke/lfs_protocol/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "lfs_protocol", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:serde_json", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:mime", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:serde", - ], -) diff --git a/eden/mononoke/lfs_server/TARGETS b/eden/mononoke/lfs_server/TARGETS deleted file mode 100644 index a869b7155b72b..0000000000000 --- a/eden/mononoke/lfs_server/TARGETS +++ /dev/null @@ -1,81 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("//eden/mononoke/facebook:lib.bzl", "tokio_dependency_test") - -oncall("scm_server_infra") - -rust_binary( - name = "lfs_server", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobstore:chaosblob", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/repo_factory:test_repo_factory", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:futures-util", - "fbsource//third-party/rust:gotham", - "fbsource//third-party/rust:gotham_derive", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:hyper", - "fbsource//third-party/rust:hyper-openssl", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:mime", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:openssl", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/hostname:hostname", - "//common/rust/shed/secure_utils:secure_utils", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//configerator/structs/scm/mononoke/lfs_server:lfs_server_config-rust", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:redactedblobstore", - "//eden/mononoke/cmdlib/caching:cmdlib_caching", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/connection_security_checker:connection_security_checker", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/gotham_ext:gotham_ext", - "//eden/mononoke/lfs_protocol:lfs_protocol", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_configs:mononoke_configs", - "//eden/mononoke/mononoke_repos:mononoke_repos", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/rate_limiting:rate_limiting", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/mononoke/time_window_counter:time_window_counter", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) - -tokio_dependency_test( - name = "tokio_check", - rule = ":lfs_server", -) diff --git a/eden/mononoke/manifest/TARGETS b/eden/mononoke/manifest/TARGETS deleted file mode 100644 index 8a207685e835e..0000000000000 --- a/eden/mononoke/manifest/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "manifest", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:serde_cbor", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:either", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:nonzero_ext", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/megarepo_api/TARGETS b/eden/mononoke/megarepo_api/TARGETS deleted file mode 100644 index 18e6678efbd8d..0000000000000 --- a/eden/mononoke/megarepo_api/TARGETS +++ /dev/null @@ -1,213 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "commit_transformation", - srcs = glob(["commit_transformation/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "commit_transformation"}, - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:derivative", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobrepo:blobsync", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobrepo_utils:blobrepo_utils", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api/if:megarepo_configs-rust", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "megarepo_mapping", - srcs = glob([ - "mapping/src/**/*.rs", - "mapping/schemas/**/*.sql", - ]), - autocargo = {"cargo_toml_dir": "mapping"}, - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data/content_manifest_derivation:content_manifest_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api/if:megarepo_configs-rust", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "megarepo_error", - srcs = glob(["megarepo_error/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "megarepo_error"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:thiserror", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/scs/if:source_control-rust", - ], -) - -rust_library( - name = "megarepo_config", - srcs = glob([ - "megarepo_config/src/**/*.rs", - "megarepo_config/schemas/**/*.sql", - ]), - autocargo = {"cargo_toml_dir": "megarepo_config"}, - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:slog", - ":megarepo_error", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/common/futures_watchdog:futures_watchdog", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/megarepo_api/if:megarepo_configs-rust", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_library( - name = "pushredirect", - srcs = glob([ - "pushredirect/src/**/*.rs", - "pushredirect/schemas/**/*.sql", - ]), - autocargo = {"cargo_toml_dir": "pushredirect"}, - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "megarepo_api", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - ":commit_transformation", - ":megarepo_config", - ":megarepo_error", - ":megarepo_mapping", - "//common/rust/shed/async_once_cell:async_once_cell", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/derived_data/content_manifest_derivation:content_manifest_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_renames:mutable_renames", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/repo_factory:repo_factory", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/megarepo_api/if/TARGETS b/eden/mononoke/megarepo_api/if/TARGETS deleted file mode 100644 index 6c46020708078..0000000000000 --- a/eden/mononoke/megarepo_api/if/TARGETS +++ /dev/null @@ -1,37 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") -load("//common/automock:automock.bzl", "thrift_plugin_automock") - -oncall("scm_server_infra") - -thrift_library( - name = "megarepo_configs", - java_versions = [ - "21", - ], - languages = [ - "hs2", - "rust", - "py3", - "cpp2", - "java-swift", - "py-deprecated", - ], - plugins = [ - thrift_plugin_automock, - ], - py3_namespace = "scm.service.thrift", - py_base_module = "scm.service.thrift", - py_remote_service_router = True, - rust_autocargo = {"cargo_toml_dir": "megarepo_configs"}, - thrift_cpp2_options = [ - "reflection", - ], - thrift_py_options = "utf8strings", - thrift_rust_options = "serde", - thrift_srcs = { - "megarepo_configs.thrift": [], - }, - deps = [ - "//thrift/annotation:rust", - ], -) diff --git a/eden/mononoke/mercurial/TARGETS b/eden/mononoke/mercurial/TARGETS deleted file mode 100644 index e6afb32f929a7..0000000000000 --- a/eden/mononoke/mercurial/TARGETS +++ /dev/null @@ -1,245 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "mercurial_revlog", - srcs = glob(["revlog/**/*.rs"]), - autocargo = {"cargo_toml_dir": "revlog"}, - named_deps = { - "futures-old": "fbsource//third-party/rust:futures-old", - "futures_ext": "//common/rust/shed/futures_01_ext:futures_01_ext", - }, - test_deps = [ - "fbsource//third-party/rust:assert_matches", - ":mercurial_types-mocks", - "//common/rust/shed/failure_ext:failure_ext", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - # A test inside this target is using #[should_panic], setting the backtrace - # to false here, otherwise the test binary will try to extract the backtrace - # and the test will fail with leak sanatizer. - test_env = {"RUST_BACKTRACE": "0"}, - test_labels = ["tpx-rust-no-backtrace-workaround"], - test_srcs = glob([ - "revlog/bundle2/fixtures/*", - "revlog/*/*.bin", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:bitflags", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:flate2", - "fbsource//third-party/rust:memmap2", - "fbsource//third-party/rust:nom-old", - "fbsource//third-party/rust:thiserror", - ":mercurial_types", - "//eden/scm/lib/lz4-pyframe:lz4-pyframe", - ], -) - -rust_library( - name = "mercurial_types", - srcs = glob(["types/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "types"}, - named_deps = { - "blake3-constants": "//blake3:blake3-constants-rust-nothrift", - }, - test_deps = [ - "fbsource//third-party/rust:tokio", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization-rust", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/tests/fixtures:fixtures", - ], - test_srcs = glob([ - "types/src/blobs/*/*.bin", - ]), - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:bitflags", - "fbsource//third-party/rust:blake3", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:percent-encoding", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rand_distr", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/shed/sql:sql", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial/types/if:mercurial-thrift-rust", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/types:types", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_library( - name = "mercurial_types-mocks", - srcs = glob(["types/mocks/**/*.rs"]), - autocargo = {"cargo_toml_dir": "types/mocks"}, - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:byteorder", - ":mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], -) - -rust_unittest( - name = "mercurial_types-tests", - srcs = glob(["types/tests/**/*.rs"]), - autocargo = {"cargo_toml_dir": "types/mocks"}, - crate = "mercurial_types_test", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:quickcheck", - ":mercurial_types", - ":mercurial_types-mocks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], -) - -rust_library( - name = "mercurial_bundles", - srcs = glob(["bundles/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "bundles"}, - test_deps = [ - "fbcode//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:partial-io", - "fbsource//third-party/rust:tokio", - ":mercurial_types-mocks", - "//common/rust/shed/failure_ext:failure_ext", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - test_srcs = glob(["bundles/src/fixtures/*"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-compression", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:bufsize", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:percent-encoding", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-util", - ":mercurial_mutation", - ":mercurial_types", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/phases:phases", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/revisionstore:revisionstore_types", - "//eden/scm/lib/types:types", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) - -rust_library( - name = "mercurial_mutation", - srcs = glob([ - "mutation/src/**/*.rs", - "mutation/schemas/**/*.sql", - ]), - autocargo = {"cargo_toml_dir": "mutation"}, - test_deps = [ - "fbsource//third-party/rust:quickcheck", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - ], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - ":mercurial_types", - "//common/rust/shed/abomonable_string:abomonable_string", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mercurial/mutation/if:hg_mutation_entry_thrift-rust", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/types:types", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_unittest( - name = "mercurial_mutation_test", - srcs = glob(["mutation/test/**/*.rs"]), - autocargo = {"cargo_toml_dir": "mutation"}, - crate = "mercurial_mutation_test", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:maplit", - ":mercurial_mutation", - ":mercurial_types", - ":mercurial_types-mocks", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/mercurial/mutation/if/TARGETS b/eden/mononoke/mercurial/mutation/if/TARGETS deleted file mode 100644 index 80a6ee456788f..0000000000000 --- a/eden/mononoke/mercurial/mutation/if/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "hg_mutation_entry_thrift", - languages = [ - "rust", - ], - rust_deps = [ - "fbsource//third-party/rust:smallvec", - ], - thrift_srcs = { - "hg_mutation_entry.thrift": [], - }, - # The Thrift definitions are private and only used for serialization -- do - # not allow other code to use them. - visibility = [ - "//eden/mononoke/mercurial:mercurial_mutation", - "//eden/mononoke/mercurial:mercurial_mutation-unittest", - ], - deps = [ - "//eden/mononoke/mercurial/types/if:mercurial-thrift", - ], -) diff --git a/eden/mononoke/mercurial/types/if/TARGETS b/eden/mononoke/mercurial/types/if/TARGETS deleted file mode 100644 index 6b7864322c17e..0000000000000 --- a/eden/mononoke/mercurial/types/if/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "mercurial-thrift", - languages = [ - "rust", - "cpp2", - ], - rust_deps = [ - "fbsource//third-party/rust:smallvec", - ], - thrift_srcs = { - "mercurial_thrift.thrift": [], - }, - # The Thrift definitions are private and only used for serialization -- do - # not allow other code to use them. - visibility = [ - "//eden/mononoke/bonsai_hg_mapping/if:", - "//eden/mononoke/derived_data/remote/if:", - "//eden/mononoke/filenodes/if:", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mercurial:mercurial_types-unittest", - "//eden/mononoke/mercurial/mutation/if:", - "//eden/mononoke/microwave/if:", - ], - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/metaconfig/TARGETS b/eden/mononoke/metaconfig/TARGETS deleted file mode 100644 index 6e25e3bd93c5c..0000000000000 --- a/eden/mononoke/metaconfig/TARGETS +++ /dev/null @@ -1,61 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "metaconfig_types", - srcs = glob(["types/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "types"}, - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:derive_more", - "fbsource//third-party/rust:mysql_common", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:rusoto_core", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:serde_json", - "//common/rust/shed/facet:facet", - "//common/rust/shed/scuba_stub:scuba", - "//common/rust/shed/sql:sql", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) - -rust_library( - name = "metaconfig_parser", - srcs = glob(["parser/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "parser"}, - test_deps = [ - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:tempfile", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:nonzero_ext", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:rusoto_core", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_ignored", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:toml", - ":metaconfig_types", - "//common/rust/shed/cached_config:cached_config", - "//configerator/structs/scm/mononoke/repos:commitsync-rust", - "//configerator/structs/scm/mononoke/repos:repos-rust", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/scm/lib/repo/url:repourl", - ], -) diff --git a/eden/mononoke/microwave/TARGETS b/eden/mononoke/microwave/TARGETS deleted file mode 100644 index 32b6fcf0656dd..0000000000000 --- a/eden/mononoke/microwave/TARGETS +++ /dev/null @@ -1,60 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_binary( - name = "builder", - srcs = glob(["builder/**/*.rs"]), - autocargo = {"cargo_toml_dir": "builder"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - ":microwave", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:blobrepo_override", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:warm_bookmarks_cache", - "//eden/mononoke/cache_warmup:cache_warmup", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/derived_data/filenodes_derivation:filenodes_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "microwave", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/microwave/if:microwave-if-rust", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) diff --git a/eden/mononoke/microwave/if/TARGETS b/eden/mononoke/microwave/if/TARGETS deleted file mode 100644 index 95257826a3750..0000000000000 --- a/eden/mononoke/microwave/if/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "microwave-if", - languages = [ - "rust", - ], - rust_deps = [ - "fbsource//third-party/rust:smallvec", - ], - thrift_srcs = { - "microwave.thrift": [], - }, - deps = [ - "//eden/mononoke/mercurial/types/if:mercurial-thrift", - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/modern_sync/TARGETS b/eden/mononoke/modern_sync/TARGETS deleted file mode 100644 index aec2f1a7082c3..0000000000000 --- a/eden/mononoke/modern_sync/TARGETS +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "mononoke_modern_sync_job", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:url", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/assembly_line:assembly_line", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/edenapi:edenapi", - ], -) diff --git a/eden/mononoke/mononoke_api/TARGETS b/eden/mononoke/mononoke_api/TARGETS deleted file mode 100644 index 8c91eb01109b3..0000000000000 --- a/eden/mononoke/mononoke_api/TARGETS +++ /dev/null @@ -1,133 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "mononoke_api", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"sapling-sparse": {"features": ["async"]}}}, - "extra_buck_dependencies": {"dependencies": ["//eden/scm/lib/sparse:sparse"]}, - }}, - test_deps = [ - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:gix-object", - "fbsource//third-party/rust:pretty_assertions", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync_test_utils", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_testlib:commit_graph_testlib", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - "//eden/scm/lib/types:types", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:derivative", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_lazy_shared:futures_lazy_shared", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/shed/stats:stats", - "//eden/mononoke/acl_regions:acl_regions", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_svnrev_mapping:bonsai_svnrev_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_cache", - "//eden/mononoke/bookmarks:bookmarks_movement", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/commit_cloud:commit_cloud", - "//eden/mononoke/commit_cloud/types:commit_cloud_types", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/common/futures_watchdog:futures_watchdog", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:basename_suffix_skeleton_manifest_v3", - "//eden/mononoke/derived_data:blame", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:deleted_manifest", - "//eden/mononoke/derived_data:derived_data", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/derived_data:skeleton_manifest_v2", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/features/history_traversal:history_traversal", - "//eden/mononoke/features/repo_update_logger:repo_update_logger", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/git/packfile:packfile", - "//eden/mononoke/git/protocol:protocol", - "//eden/mononoke/git_source_of_truth:git_source_of_truth", - "//eden/mononoke/git_symbolic_refs:git_symbolic_refs", - "//eden/mononoke/hooks:hooks", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api:megarepo_error", - "//eden/mononoke/mercurial:mercurial_mutation", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_repos:mononoke_repos", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/mutable_renames:mutable_renames", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/pushrebase:pushrebase_client", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/hook_manager/hook_manager:hook_manager", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/repo_lock:repo_lock", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/repo_attributes/repo_sparse_profiles:repo_sparse_profiles", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/repo_client:streaming_clone", - "//eden/mononoke/repo_client:unbundle", - "//eden/mononoke/repo_stats_logger:repo_stats_logger", - "//eden/mononoke/server/context:context", - "//eden/mononoke/wireproto_handler:wireproto_handler", - "//eden/scm/lib/dag/dag-types:dag-types", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/sparse:sparse-async", - "//eden/scm/lib/types:types", - "//eden/scm/lib/xdiff:xdiff", - ], -) diff --git a/eden/mononoke/mononoke_api_hg/TARGETS b/eden/mononoke/mononoke_api_hg/TARGETS deleted file mode 100644 index 722ed58eeb7e3..0000000000000 --- a/eden/mononoke/mononoke_api_hg/TARGETS +++ /dev/null @@ -1,55 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "mononoke_api_hg", - srcs = glob(["src/**/*.rs"]), - named_deps = { - }, - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:futures-util", - "fbsource//third-party/rust:slog", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/commit_cloud:commit_cloud", - "//eden/mononoke/commit_cloud/types:commit_cloud_types", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/features/repo_update_logger:repo_update_logger", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/hgproto:hgproto", - "//eden/mononoke/mercurial:mercurial_mutation", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/phases:phases", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_client:getbundle_response", - "//eden/mononoke/repo_client:remotefilelog", - "//eden/mononoke/repo_client:repo_client", - "//eden/mononoke/repo_client:unbundle", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/dag/dag-types:dag-types", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/revisionstore:revisionstore_types", - ], -) diff --git a/eden/mononoke/mononoke_cas_sync_job/TARGETS b/eden/mononoke/mononoke_cas_sync_job/TARGETS deleted file mode 100644 index 885e106a57aae..0000000000000 --- a/eden/mononoke/mononoke_cas_sync_job/TARGETS +++ /dev/null @@ -1,51 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "mononoke_cas_sync_job", - srcs = glob([ - "src/**/*.rs", - ]), - named_deps = { - "clap-old": "fbsource//third-party/rust:clap-2", - }, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:dbbookmarks", - "//eden/mononoke/cas_client:cas_client", - "//eden/mononoke/cas_client:changesets_uploader", - "//eden/mononoke/cmdlib:cmdlib", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/cmdlib/zk_leader_election:zk_leader_election", - "//eden/mononoke/common/assembly_line:assembly_line", - "//eden/mononoke/common/futures_watchdog:futures_watchdog", - "//eden/mononoke/common/retry:retry", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/repo/url:repourl", - ], -) diff --git a/eden/mononoke/mononoke_configs/TARGETS b/eden/mononoke/mononoke_configs/TARGETS deleted file mode 100644 index 12e3ae7469844..0000000000000 --- a/eden/mononoke/mononoke_configs/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "mononoke_configs", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/tests/fixtures:fixtures", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:arc-swap", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:sha2", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/stats:stats", - "//configerator/structs/scm/mononoke/repos:repos-rust", - "//eden/mononoke/metaconfig:metaconfig_parser", - "//eden/mononoke/metaconfig:metaconfig_types", - ], -) diff --git a/eden/mononoke/mononoke_hg_sync_job/TARGETS b/eden/mononoke/mononoke_hg_sync_job/TARGETS deleted file mode 100644 index c6a5e8cfd25d2..0000000000000 --- a/eden/mononoke/mononoke_hg_sync_job/TARGETS +++ /dev/null @@ -1,113 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("//eden/mononoke/facebook:lib.bzl", "tokio_dependency_test") - -oncall("scm_server_infra") - -rust_binary( - name = "mononoke_hg_sync_job", - srcs = glob([ - "src/**/*.rs", - "src/**/*.py", - "schemas/**/*.sql", - ]), - named_deps = { - "clap-old": "fbsource//third-party/rust:clap-2", - }, - test_deps = [ - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/mercurial:mercurial_types-mocks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:hyper", - "fbsource//third-party/rust:hyper-openssl", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ":mononoke_hg_sync_job_helper_lib", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:dbbookmarks", - "//eden/mononoke/cmdlib:cmdlib", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/assembly_line:assembly_line", - "//eden/mononoke/common/futures_watchdog:futures_watchdog", - "//eden/mononoke/common/retry:retry", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/gotham_ext:gotham_ext", - "//eden/mononoke/lfs_protocol:lfs_protocol", - "//eden/mononoke/mercurial:mercurial_bundles", - "//eden/mononoke/mercurial:mercurial_revlog", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/repo_lock:repo_lock", - "//eden/mononoke/repo_client:getbundle_response", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) - -rust_library( - name = "mononoke_hg_sync_job_helper_lib", - srcs = glob(["helper_lib/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-stream", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -tokio_dependency_test( - name = "tokio_check", - rule = ":mononoke_hg_sync_job", -) diff --git a/eden/mononoke/mononoke_macros/TARGETS b/eden/mononoke/mononoke_macros/TARGETS deleted file mode 100644 index 0422ca79e8206..0000000000000 --- a/eden/mononoke/mononoke_macros/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "mononoke_proc_macros", - srcs = glob([ - "proc_macros/**/*.rs", - ]), - autocargo = { - "cargo_toml_dir": "proc_macros", - }, - proc_macro = True, - deps = [ - "fbsource//third-party/rust:quote", - "fbsource//third-party/rust:syn1", - ], -) - -rust_library( - name = "mononoke_macros", - srcs = glob([ - "src/**/*.rs", - "just_knobs_defaults/**/*.json", - ]), - deps = [ - ":mononoke_proc_macros", - "//common/rust/shed/justknobs_stub:justknobs", - ], -) - -buck_filegroup( - name = "just_knobs_defaults", - srcs = [ - "just_knobs_defaults/just_knobs.json", - ], -) diff --git a/eden/mononoke/mononoke_repos/TARGETS b/eden/mononoke/mononoke_repos/TARGETS deleted file mode 100644 index f183127fc0080..0000000000000 --- a/eden/mononoke/mononoke_repos/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "mononoke_repos", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:arc-swap", - "fbsource//third-party/rust:parking_lot", - ], -) diff --git a/eden/mononoke/mononoke_types/TARGETS b/eden/mononoke/mononoke_types/TARGETS deleted file mode 100644 index cca59797d266e..0000000000000 --- a/eden/mononoke/mononoke_types/TARGETS +++ /dev/null @@ -1,83 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "mononoke_types", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:crossbeam", - "fbsource//third-party/rust:paste", - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:quickcheck_async", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:async-recursion", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bincode", - "fbsource//third-party/rust:bit-set", - "fbsource//third-party/rust:blake2", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:chrono-english", - "fbsource//third-party/rust:derivative", - "fbsource//third-party/rust:either", - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-date", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:nonzero_ext", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:vec_map", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//common/rust/shed/sql:sql", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/common/thrift_convert:thrift_convert", - "//eden/mononoke/derived_data/if:derived_data_type_if-rust", - "//eden/mononoke/lfs_protocol:lfs_protocol", - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization-rust", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/xdiff:xdiff", - "//thrift/lib/rust:fbthrift", - ], -) - -rust_library( - name = "mononoke_types-mocks", - srcs = glob(["mocks/**/*.rs"]), - autocargo = { - "cargo_toml_dir": "mocks", - }, - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:lazy_static", - ":mononoke_types", - ], -) diff --git a/eden/mononoke/mononoke_types/serialization/TARGETS b/eden/mononoke/mononoke_types/serialization/TARGETS deleted file mode 100644 index 507c23fee3883..0000000000000 --- a/eden/mononoke/mononoke_types/serialization/TARGETS +++ /dev/null @@ -1,52 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "mononoke_types_serialization", - languages = [ - "rust", - "cpp2", - ], - rust_deps = [ - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:smallvec", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - ], - thrift_srcs = { - thrift_file: [] - for thrift_file in glob(["*.thrift"]) - }, - # The Thrift definitions are private and only used for serialization and for mononoke-internal - # thrift services -- do not allow other code to use them, except for other private Thrift code. - # THIS IS NOT A PUBLIC SOURCE CONTROL API AND THERE IS NO GUARANTEE OF BACKWARDS COMPATIBLITY. - visibility = [ - "//eden/mononoke/async_requests:", - "//eden/mononoke/async_requests/if:", - "//eden/mononoke/bonsai_git_mapping/if:", - "//eden/mononoke/bonsai_globalrev_mapping/if:", - "//eden/mononoke/bonsai_hg_mapping/if:", - "//eden/mononoke/bonsai_svnrev_mapping/if:", - "//eden/mononoke/changesets/if:", - "//eden/mononoke/commit_rewriting/synced_commit_mapping/if:", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:changeset_info-unittest", - "//eden/mononoke/derived_data/remote/if:", - "//eden/mononoke/facebook/bookmark_service/if:", - "//eden/mononoke/facebook/get_bundle:bundle_store_lib", - "//eden/mononoke/filenodes/if:", - "//eden/mononoke/git/git_types:", - "//eden/mononoke/git/git_types/if:", - "//eden/mononoke/megarepo_api:", - "//eden/mononoke/megarepo_api/if:", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mercurial:mercurial_types-unittest", - "//eden/mononoke/mercurial/types/if:", - "//eden/mononoke/microwave/if:", - "//eden/mononoke/mononoke_types:", - "//eden/mononoke/mononoke_types/if:", - "//eden/mononoke/mutable_renames/if:", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types/if:", - "//eden/mononoke/repo_attributes/repo_derivation_queues/if:", - ], -) diff --git a/eden/mononoke/mutable_counters/TARGETS b/eden/mononoke/mutable_counters/TARGETS deleted file mode 100644 index a60bd566cf17d..0000000000000 --- a/eden/mononoke/mutable_counters/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "mutable_counters", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/facet:facet", - "//common/rust/shed/sql:sql", - "//common/rust/shed/stats:stats", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "mutable_counters_test", - srcs = glob(["test/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - ":mutable_counters", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/mutable_renames/TARGETS b/eden/mononoke/mutable_renames/TARGETS deleted file mode 100644 index 38cb907f97aad..0000000000000 --- a/eden/mononoke/mutable_renames/TARGETS +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "mutable_renames", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/repo_attributes/commit_graph/in_memory_commit_graph_storage:in_memory_commit_graph_storage", - ], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/path_hash:path_hash", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_renames/if:mutable-rename-thrift-rust", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) diff --git a/eden/mononoke/mutable_renames/if/TARGETS b/eden/mononoke/mutable_renames/if/TARGETS deleted file mode 100644 index 1ad5b1cfbfd13..0000000000000 --- a/eden/mononoke/mutable_renames/if/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "mutable-rename-thrift", - languages = [ - "rust", - ], - rust_deps = [ - "fbsource//third-party/rust:smallvec", - ], - thrift_srcs = { - "mutable_rename.thrift": [], - }, - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/newfilenodes/TARGETS b/eden/mononoke/newfilenodes/TARGETS deleted file mode 100644 index 08af69ac0361b..0000000000000 --- a/eden/mononoke/newfilenodes/TARGETS +++ /dev/null @@ -1,47 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "newfilenodes", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - test_deps = [ - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mercurial:mercurial_types-mocks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/sql:sql", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/common/path_hash:path_hash", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) diff --git a/eden/mononoke/observability/TARGETS b/eden/mononoke/observability/TARGETS deleted file mode 100644 index 15aaca559dabf..0000000000000 --- a/eden/mononoke/observability/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "observability", - srcs = glob(["src/**/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:slog", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/scuba_stub:scuba", - "//configerator/structs/scm/mononoke/observability:observability_config-rust", - ], -) diff --git a/eden/mononoke/permission_checker/TARGETS b/eden/mononoke/permission_checker/TARGETS deleted file mode 100644 index 00f733459c4c9..0000000000000 --- a/eden/mononoke/permission_checker/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "permission_checker", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:openssl", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "//common/rust/aclchecker:aclchecker", - "//common/rust/identity:identity_ext", - "//common/rust/shed/fbinit:fbinit", - ] + ([] if rust_oss.is_oss_build() else [ - "//configerator/structs/infrasec/if:acl-rust", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:tokio", - "//configerator/structs/infrasec/if:acl-rust", - "//infrasec/authorization/if:if-service-rust", - "//infrasec/authorization/if:if-service-rust-srclients", - ]), -) diff --git a/eden/mononoke/phases/TARGETS b/eden/mononoke/phases/TARGETS deleted file mode 100644 index 2276ac15c91cb..0000000000000 --- a/eden/mononoke/phases/TARGETS +++ /dev/null @@ -1,97 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "phases", - srcs = glob([ - "src/**/*.rs", - ]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/facet:facet", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "sqlphases", - srcs = glob([ - "sqlphases/src/**/*.rs", - "sqlphases/schemas/**/*.sql", - ]), - autocargo = { - "cargo_toml_config": { - "package": { - "autotests": False, - }, - }, - "cargo_toml_dir": "sqlphases", - }, - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:thiserror", - ":phases", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/sql:sql", - "//common/rust/shed/stats:stats", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "tests", - srcs = glob([ - "tests/src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - ":phases", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/mononoke/tests/fixtures:fixtures", - ], -) diff --git a/eden/mononoke/pushrebase/TARGETS b/eden/mononoke/pushrebase/TARGETS deleted file mode 100644 index a7be2b8d794ad..0000000000000 --- a/eden/mononoke/pushrebase/TARGETS +++ /dev/null @@ -1,122 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "pushrebase", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbcode//eden/mononoke/blobrepo:blobrepo_hg", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - ":pushrebase_hook", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobrepo_utils:blobrepo_utils", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/derived_data/filenodes_derivation:filenodes_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "pushrebase_hook", - srcs = glob(["pushrebase_hook/**/*.rs"]), - autocargo = {"cargo_toml_dir": "pushrebase_hook"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/sql:sql", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "pushrebase_hooks", - srcs = glob(["pushrebase_hooks/**/*.rs"]), - autocargo = {"cargo_toml_dir": "pushrebase_hooks"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:thiserror", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_git_mapping:git_mapping_pushrebase_hook", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:globalrev_pushrebase_hook", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping_pushrebase_hook", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/pushrebase:pushrebase_hook", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "pushrebase_client", - srcs = glob(["client/**/*.rs"]), - autocargo = {"cargo_toml_dir": "client"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:slog", - "//common/rust/smc-thrift:smc-thrift", - "//common/smc/if:Smc2-rust-clients", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_movement", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/common/facebook/thrift_client:thrift_client", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/hooks:hooks", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/server/context:context", - ] + ([] if rust_oss.is_oss_build() else [ - "fbsource//third-party/rust:arc-swap", - "fbsource//third-party/rust:regex", - "//eden/mononoke/land_service/if:land_service_if-rust", - "//eden/mononoke/land_service/if:land_service_if-rust-clients", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - ]), -) diff --git a/eden/mononoke/pushrebase_mutation_mapping/TARGETS b/eden/mononoke/pushrebase_mutation_mapping/TARGETS deleted file mode 100644 index 7a98fb9128526..0000000000000 --- a/eden/mononoke/pushrebase_mutation_mapping/TARGETS +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "pushrebase_mutation_mapping", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sql:sql", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/pushrebase:pushrebase_hook", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/quiet_stream/TARGETS b/eden/mononoke/quiet_stream/TARGETS deleted file mode 100644 index 266d9f30451a4..0000000000000 --- a/eden/mononoke/quiet_stream/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "quiet_stream", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:tokio", - ], -) diff --git a/eden/mononoke/rate_limiting/TARGETS b/eden/mononoke/rate_limiting/TARGETS deleted file mode 100644 index a4688606d4040..0000000000000 --- a/eden/mononoke/rate_limiting/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "rate_limiting", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:thiserror", - "//common/rust/fbwhoami:fbwhoami", - "//common/rust/ratelim:ratelim", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/stats:stats", - "//configerator/structs/scm/mononoke/ratelimiting:rate_limiting_config-rust", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/permission_checker:permission_checker", - ], -) diff --git a/eden/mononoke/repo_attributes/bonsai_blob_mapping/TARGETS b/eden/mononoke/repo_attributes/bonsai_blob_mapping/TARGETS deleted file mode 100644 index 1a99ea964545a..0000000000000 --- a/eden/mononoke/repo_attributes/bonsai_blob_mapping/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("source_control") - -rust_library( - name = "bonsai_blob_mapping", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - test_deps = [ - "fbsource//third-party/rust:tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:twox-hash", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/facet:facet", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/repo_attributes/commit_graph/buffered_commit_graph_storage/TARGETS b/eden/mononoke/repo_attributes/commit_graph/buffered_commit_graph_storage/TARGETS deleted file mode 100644 index 0a1204cee65f3..0000000000000 --- a/eden/mononoke/repo_attributes/commit_graph/buffered_commit_graph_storage/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "buffered_commit_graph_storage", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_testlib:commit_graph_testlib", - "//eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage:sql_commit_graph_storage", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:vec1", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/commit_graph/in_memory_commit_graph_storage:in_memory_commit_graph_storage", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/commit_graph/caching_commit_graph_storage/TARGETS b/eden/mononoke/repo_attributes/commit_graph/caching_commit_graph_storage/TARGETS deleted file mode 100644 index f2b266ec934ec..0000000000000 --- a/eden/mononoke/repo_attributes/commit_graph/caching_commit_graph_storage/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "caching_commit_graph_storage", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_testlib:commit_graph_testlib", - "//eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage:sql_commit_graph_storage", - ], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/stats:stats", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types/if:commit_graph_thrift-rust", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) diff --git a/eden/mononoke/repo_attributes/commit_graph/commit_graph/TARGETS b/eden/mononoke/repo_attributes/commit_graph/commit_graph/TARGETS deleted file mode 100644 index 8c8d91a2dc1be..0000000000000 --- a/eden/mononoke/repo_attributes/commit_graph/commit_graph/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "commit_graph", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/buffered_commit_graph_storage:buffered_commit_graph_storage", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/commit_graph/memwrites_commit_graph_storage:memwrites_commit_graph_storage", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/commit_graph/commit_graph_testlib/TARGETS b/eden/mononoke/repo_attributes/commit_graph/commit_graph_testlib/TARGETS deleted file mode 100644 index e52d34b28355e..0000000000000 --- a/eden/mononoke/repo_attributes/commit_graph/commit_graph_testlib/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "commit_graph_testlib", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/commit_graph/in_memory_commit_graph_storage:in_memory_commit_graph_storage", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/drawdag:drawdag", - ], -) diff --git a/eden/mononoke/repo_attributes/commit_graph/commit_graph_types/TARGETS b/eden/mononoke/repo_attributes/commit_graph/commit_graph_types/TARGETS deleted file mode 100644 index 48a00e8531964..0000000000000 --- a/eden/mononoke/repo_attributes/commit_graph/commit_graph_types/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "commit_graph_types", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:either", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:vec1", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types/if:commit_graph_thrift-rust", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/commit_graph/commit_graph_types/if/TARGETS b/eden/mononoke/repo_attributes/commit_graph/commit_graph_types/if/TARGETS deleted file mode 100644 index 045375b3923f8..0000000000000 --- a/eden/mononoke/repo_attributes/commit_graph/commit_graph_types/if/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "commit_graph_thrift", - languages = [ - "rust", - ], - thrift_srcs = { - "commit_graph.thrift": [], - }, - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/repo_attributes/commit_graph/in_memory_commit_graph_storage/TARGETS b/eden/mononoke/repo_attributes/commit_graph/in_memory_commit_graph_storage/TARGETS deleted file mode 100644 index 6262873f4cb49..0000000000000 --- a/eden/mononoke/repo_attributes/commit_graph/in_memory_commit_graph_storage/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "in_memory_commit_graph_storage", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:vec1", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/commit_graph/memwrites_commit_graph_storage/TARGETS b/eden/mononoke/repo_attributes/commit_graph/memwrites_commit_graph_storage/TARGETS deleted file mode 100644 index 904a4101cd7d6..0000000000000 --- a/eden/mononoke/repo_attributes/commit_graph/memwrites_commit_graph_storage/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "memwrites_commit_graph_storage", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_testlib:commit_graph_testlib", - "//eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage:sql_commit_graph_storage", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:vec1", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/commit_graph/in_memory_commit_graph_storage:in_memory_commit_graph_storage", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/commit_graph/preloaded_commit_graph_storage/TARGETS b/eden/mononoke/repo_attributes/commit_graph/preloaded_commit_graph_storage/TARGETS deleted file mode 100644 index 737711501b9f9..0000000000000 --- a/eden/mononoke/repo_attributes/commit_graph/preloaded_commit_graph_storage/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "preloaded_commit_graph_storage", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_testlib:commit_graph_testlib", - "//eden/mononoke/repo_attributes/commit_graph/in_memory_commit_graph_storage:in_memory_commit_graph_storage", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/common/reloader:reloader", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types/if:commit_graph_thrift-rust", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ], -) diff --git a/eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage/TARGETS b/eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage/TARGETS deleted file mode 100644 index 927e22772cd70..0000000000000 --- a/eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage/TARGETS +++ /dev/null @@ -1,34 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "sql_commit_graph_storage", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_testlib:commit_graph_testlib", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/retry:retry", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/deletion_log/TARGETS b/eden/mononoke/repo_attributes/deletion_log/TARGETS deleted file mode 100644 index a0de6d95f12ef..0000000000000 --- a/eden/mononoke/repo_attributes/deletion_log/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "deletion_log", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - test_deps = [ - "fbsource//third-party/rust:tokio", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:strum", - "//common/rust/shed/facet:facet", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/repo_attributes/hook_manager/hook_manager/TARGETS b/eden/mononoke/repo_attributes/hook_manager/hook_manager/TARGETS deleted file mode 100644 index 3842d53f50ca0..0000000000000 --- a/eden/mononoke/repo_attributes/hook_manager/hook_manager/TARGETS +++ /dev/null @@ -1,48 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "hook_manager", - srcs = glob([ - "src/**/*.rs", - ]), - autocargo = { - "cargo_target_config": { - "doctest": False, - "test": False, - }, - }, - test_deps = [ - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/scuba_stub:scuba", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/hook_manager/repo_hook_file_content_provider/TARGETS b/eden/mononoke/repo_attributes/hook_manager/repo_hook_file_content_provider/TARGETS deleted file mode 100644 index c2e8b796e3a8c..0000000000000 --- a/eden/mononoke/repo_attributes/hook_manager/repo_hook_file_content_provider/TARGETS +++ /dev/null @@ -1,47 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_hook_file_content_provider", - srcs = glob([ - "src/**/*.rs", - ]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:regex", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:futures-util", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/hook_manager/hook_manager:hook_manager", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/repo_bookmark_attrs/TARGETS b/eden/mononoke/repo_attributes/repo_bookmark_attrs/TARGETS deleted file mode 100644 index 8dcfeb1113075..0000000000000 --- a/eden/mononoke/repo_attributes/repo_bookmark_attrs/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_bookmark_attrs", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "//common/rust/shed/facet:facet", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/repo_cross_repo/TARGETS b/eden/mononoke/repo_attributes/repo_cross_repo/TARGETS deleted file mode 100644 index cb6be395c95b2..0000000000000 --- a/eden/mononoke/repo_attributes/repo_cross_repo/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_cross_repo", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "//common/rust/shed/facet:facet", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/repo_attributes/repo_derivation_queues/TARGETS b/eden/mononoke/repo_attributes/repo_derivation_queues/TARGETS deleted file mode 100644 index fedf78091f655..0000000000000 --- a/eden/mononoke/repo_attributes/repo_derivation_queues/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_derivation_queues", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/zeus:zeus_client", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derivation_queues/if:derivation_queue_thrift-rust", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - "//thrift/lib/rust:fbthrift", - ], -) diff --git a/eden/mononoke/repo_attributes/repo_derivation_queues/facebook/TARGETS b/eden/mononoke/repo_attributes/repo_derivation_queues/facebook/TARGETS deleted file mode 100644 index 395f967abc531..0000000000000 --- a/eden/mononoke/repo_attributes/repo_derivation_queues/facebook/TARGETS +++ /dev/null @@ -1,77 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "zelos_queue", - srcs = glob(["zelos_queue/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:assert_matches", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/server/context:context", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:strum", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/zeus:zeus_client", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derivation_queues:repo_derivation_queues", - "//eden/mononoke/server/context:context", - ], -) - -rust_unittest( - name = "zelos_queue_tests", - srcs = glob(["zelos_queue_tests/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:tokio", - ":zelos_queue", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/zeus:zeus_client", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derivation_queues:repo_derivation_queues", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/server/context:context", - "//eden/mononoke/tests/utils:tests_utils", - ], -) diff --git a/eden/mononoke/repo_attributes/repo_derivation_queues/if/TARGETS b/eden/mononoke/repo_attributes/repo_derivation_queues/if/TARGETS deleted file mode 100644 index 71b449d691084..0000000000000 --- a/eden/mononoke/repo_attributes/repo_derivation_queues/if/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") - -oncall("scm_server_infra") - -thrift_library( - name = "derivation_queue_thrift", - languages = [ - "rust", - ], - thrift_srcs = { - "derivation_queue.thrift": [], - }, - deps = [ - "//eden/mononoke/mononoke_types/serialization:mononoke_types_serialization", - ], -) diff --git a/eden/mononoke/repo_attributes/repo_derived_data/TARGETS b/eden/mononoke/repo_attributes/repo_derived_data/TARGETS deleted file mode 100644 index f94670529e213..0000000000000 --- a/eden/mononoke/repo_attributes/repo_derived_data/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_derived_data", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "//common/rust/shed/facet:facet", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:derived_data_remote", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/repo_identity/TARGETS b/eden/mononoke/repo_attributes/repo_identity/TARGETS deleted file mode 100644 index 006ebd7834678..0000000000000 --- a/eden/mononoke/repo_attributes/repo_identity/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_identity", - srcs = glob(["src/**/*.rs"]), - deps = [ - "//common/rust/shed/facet:facet", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/repo_attributes/repo_lock/TARGETS b/eden/mononoke/repo_attributes/repo_lock/TARGETS deleted file mode 100644 index 36cc766be6d42..0000000000000 --- a/eden/mononoke/repo_attributes/repo_lock/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_lock", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - autocargo = {"cargo_toml_dir": "repo_lock"}, - test_deps = [ - "fbsource//third-party/rust:tokio", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:maplit", - "//common/rust/shed/facet:facet", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/repo_attributes/repo_permission_checker/TARGETS b/eden/mononoke/repo_attributes/repo_permission_checker/TARGETS deleted file mode 100644 index 4232148b7f015..0000000000000 --- a/eden/mononoke/repo_attributes/repo_permission_checker/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_permission_checker", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:mockall", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_attributes/repo_sparse_profiles/TARGETS b/eden/mononoke/repo_attributes/repo_sparse_profiles/TARGETS deleted file mode 100644 index c6958d0509072..0000000000000 --- a/eden/mononoke/repo_attributes/repo_sparse_profiles/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_sparse_profiles", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - test_deps = [ - "fbsource//third-party/rust:tokio", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "//common/rust/shed/facet:facet", - "//common/rust/shed/sql:sql", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) diff --git a/eden/mononoke/repo_attributes/sql_query_config/TARGETS b/eden/mononoke/repo_attributes/sql_query_config/TARGETS deleted file mode 100644 index 6f02345d42782..0000000000000 --- a/eden/mononoke/repo_attributes/sql_query_config/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "sql_query_config", - srcs = glob(["src/**/*.rs"]), - deps = [ - "//common/rust/shed/facet:facet", - "//common/rust/shed/memcache_stub:memcache", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - ], -) diff --git a/eden/mononoke/repo_authorization/TARGETS b/eden/mononoke/repo_authorization/TARGETS deleted file mode 100644 index c5eaf233565db..0000000000000 --- a/eden/mononoke/repo_authorization/TARGETS +++ /dev/null @@ -1,35 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_authorization", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_factory:test_repo_factory", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/futures_stats:futures_stats", - "//eden/mononoke/acl_regions:acl_regions", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/commit_cloud:commit_cloud", - "//eden/mononoke/commit_cloud/helpers:commit_cloud_helpers", - "//eden/mononoke/facebook/commit_cloud:commit_cloud_intern_utils", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/repo_client/TARGETS b/eden/mononoke/repo_client/TARGETS deleted file mode 100644 index f2fce7687f845..0000000000000 --- a/eden/mononoke/repo_client/TARGETS +++ /dev/null @@ -1,307 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_client", - srcs = glob([ - "src/**/*.rs", - ]), - named_deps = { - "futures-old": "fbsource//third-party/rust:futures-old", - }, - test_deps = [ - "fbcode//common/rust/shed/fbinit:fbinit", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/bookmarks:warm_bookmarks_cache", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/fixtures:fixtures", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:nonzero_ext", - "fbsource//third-party/rust:percent-encoding", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ":getbundle_response", - ":remotefilelog", - ":streaming_clone", - ":unbundle", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/futures_01_ext:futures_01_ext", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/hostname:hostname", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_cache", - "//eden/mononoke/bookmarks:bookmarks_types", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/common/iterhelpers:iterhelpers", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git_source_of_truth:git_source_of_truth", - "//eden/mononoke/hgproto:hgproto", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_bundles", - "//eden/mononoke/mercurial:mercurial_mutation", - "//eden/mononoke/mercurial:mercurial_revlog", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/rate_limiting:rate_limiting", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/hook_manager/hook_manager:hook_manager", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/repo_lock:repo_lock", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/server/context:context", - "//eden/mononoke/wireproto_handler:wireproto_handler", - "//eden/scm/lib/revisionstore:revisionstore_types", - ], -) - -rust_library( - name = "remotefilelog", - srcs = glob(["remotefilelog/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "remotefilelog"}, - test_deps = [ - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:futures", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:thiserror", - ":getbundle_response", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:redactedblobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/revisionstore:revisionstore_types", - ], -) - -rust_library( - name = "streaming_clone", - srcs = glob(["streaming_clone/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "streaming_clone"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/facet:facet", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "obsolete", - srcs = glob(["obsolete/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "obsolete"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "//common/rust/shed/cloned:cloned", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/mercurial:mercurial_bundles", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "unbundle", - srcs = glob(["unbundle/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "unbundle"}, - test_deps = [ - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:quickcheck_async", - "fbsource//third-party/rust:quickcheck_macros", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mercurial:mercurial_types-mocks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_factory:test_repo_factory", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:sha2", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - ":getbundle_response", - ":obsolete", - ":remotefilelog", - ":wirepack", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_movement", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/topo_sort:topo_sort", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/features/repo_update_logger:repo_update_logger", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/hooks:hooks", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_bundles", - "//eden/mononoke/mercurial:mercurial_mutation", - "//eden/mononoke/mercurial:mercurial_revlog", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/pushrebase:pushrebase_client", - "//eden/mononoke/rate_limiting:rate_limiting", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/hook_manager/hook_manager:hook_manager", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/server/context:context", - "//eden/mononoke/time_window_counter:time_window_counter", - "//eden/mononoke/wireproto_handler:wireproto_handler", - ], -) - -rust_library( - name = "getbundle_response", - srcs = glob(["getbundle_response/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "getbundle_response"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:futures-util", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data/filenodes_derivation:filenodes_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_bundles", - "//eden/mononoke/mercurial:mercurial_mutation", - "//eden/mononoke/mercurial:mercurial_revlog", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/phases:phases", - "//eden/mononoke/rate_limiting:rate_limiting", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - ], -) - -rust_library( - name = "wirepack", - srcs = glob(["wirepack/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "wirepack"}, - test_deps = [ - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:tokio", - "//eden/mononoke/mercurial:mercurial_types-mocks", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:thiserror", - "//eden/mononoke/mercurial:mercurial_bundles", - "//eden/mononoke/mercurial:mercurial_revlog", - "//eden/mononoke/mercurial:mercurial_types", - ], -) diff --git a/eden/mononoke/repo_factory/TARGETS b/eden/mononoke/repo_factory/TARGETS deleted file mode 100644 index 89612400d846e..0000000000000 --- a/eden/mononoke/repo_factory/TARGETS +++ /dev/null @@ -1,175 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_factory", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/async_once_cell:async_once_cell", - "//common/rust/shed/cachelib_stub:cachelib", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/memcache_stub:memcache", - "//common/rust/shed/stats:stats", - "//common/rust/zeus:zeus_client", - "//eden/mononoke/acl_regions:acl_regions", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/blobstore:readonlyblob", - "//eden/mononoke/blobstore:redactedblobstore", - "//eden/mononoke/blobstore:virtually_sharded_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_svnrev_mapping:bonsai_svnrev_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_cache", - "//eden/mononoke/bookmarks:dbbookmarks", - "//eden/mononoke/bookmarks:warm_bookmarks_cache", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/commit_cloud:commit_cloud", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/futures_watchdog:futures_watchdog", - "//eden/mononoke/common/rust/caching_ext:caching_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/derived_data:derived_data_remote", - "//eden/mononoke/facebook/bookmark_service:bookmark_service_client", - "//eden/mononoke/facebook/derived_data_service:derived_data_client_library", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git_source_of_truth:git_source_of_truth", - "//eden/mononoke/git_symbolic_refs:git_symbolic_refs", - "//eden/mononoke/hooks:hooks", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/mercurial:mercurial_mutation", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/mutable_renames:mutable_renames", - "//eden/mononoke/newfilenodes:newfilenodes", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/phases:phases", - "//eden/mononoke/phases:sqlphases", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/bonsai_blob_mapping:bonsai_blob_mapping", - "//eden/mononoke/repo_attributes/commit_graph/caching_commit_graph_storage:caching_commit_graph_storage", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/commit_graph/preloaded_commit_graph_storage:preloaded_commit_graph_storage", - "//eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage:sql_commit_graph_storage", - "//eden/mononoke/repo_attributes/deletion_log:deletion_log", - "//eden/mononoke/repo_attributes/hook_manager/hook_manager:hook_manager", - "//eden/mononoke/repo_attributes/hook_manager/repo_hook_file_content_provider:repo_hook_file_content_provider", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derivation_queues:repo_derivation_queues", - "//eden/mononoke/repo_attributes/repo_derivation_queues/facebook:zelos_queue", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/repo_lock:repo_lock", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/repo_attributes/repo_sparse_profiles:repo_sparse_profiles", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/repo_client:streaming_clone", - "//eden/mononoke/repo_metadata_checkpoint:repo_metadata_checkpoint", - "//eden/mononoke/repo_stats_logger:repo_stats_logger", - "//eden/mononoke/server/context:context", - "//eden/mononoke/wireproto_handler:wireproto_handler", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) - -rust_library( - name = "test_repo_factory", - srcs = glob(["test_repo_factory/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "test_repo_factory"}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:strum", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/sql:sql", - "//eden/mononoke/acl_regions:acl_regions", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/blobstore:memblob", - "//eden/mononoke/blobstore:redactedblobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_svnrev_mapping:bonsai_svnrev_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_cache", - "//eden/mononoke/bookmarks:dbbookmarks", - "//eden/mononoke/bookmarks:warm_bookmarks_cache", - "//eden/mononoke/commit_cloud:commit_cloud", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/rendezvous:rendezvous", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git_source_of_truth:git_source_of_truth", - "//eden/mononoke/git_symbolic_refs:git_symbolic_refs", - "//eden/mononoke/megarepo_api:megarepo_mapping", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/mercurial:mercurial_mutation", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/mutable_renames:mutable_renames", - "//eden/mononoke/newfilenodes:newfilenodes", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/phases:phases", - "//eden/mononoke/phases:sqlphases", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage:sql_commit_graph_storage", - "//eden/mononoke/repo_attributes/hook_manager/hook_manager:hook_manager", - "//eden/mononoke/repo_attributes/hook_manager/repo_hook_file_content_provider:repo_hook_file_content_provider", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/repo_lock:repo_lock", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/repo_attributes/repo_sparse_profiles:repo_sparse_profiles", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/repo_client:streaming_clone", - "//eden/mononoke/repo_metadata_checkpoint:repo_metadata_checkpoint", - "//eden/mononoke/repo_stats_logger:repo_stats_logger", - "//eden/mononoke/server/context:context", - "//eden/mononoke/wireproto_handler:wireproto_handler", - ], -) - -rust_library( - name = "config_only_repo_factory", - srcs = glob(["config_only_repo_factory/src/**/*.rs"]), - autocargo = {"cargo_toml_dir": "config_only_repo_factory"}, - deps = [ - "//common/rust/shed/facet:facet", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - ], -) diff --git a/eden/mononoke/repo_import/TARGETS b/eden/mononoke/repo_import/TARGETS deleted file mode 100644 index e3250af2b533c..0000000000000 --- a/eden/mononoke/repo_import/TARGETS +++ /dev/null @@ -1,80 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "repo_import", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:ascii", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/mercurial:mercurial_types-mocks", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_movement", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/cmdlib:cmdlib_cross_repo", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/live_commit_sync_config:live_commit_sync_config", - "//eden/mononoke/commit_rewriting/movers:movers", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/topo_sort:topo_sort", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/import_direct:import_direct", - "//eden/mononoke/git/import_tools:import_tools", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_parser", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job_helper_lib", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/server/context:context", - "//eden/mononoke/wireproto_handler:wireproto_handler", - ], -) diff --git a/eden/mononoke/repo_metadata_checkpoint/TARGETS b/eden/mononoke/repo_metadata_checkpoint/TARGETS deleted file mode 100644 index e80f117a0ad5f..0000000000000 --- a/eden/mononoke/repo_metadata_checkpoint/TARGETS +++ /dev/null @@ -1,36 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("scm_server_infra") - -rust_library( - name = "repo_metadata_checkpoint", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/shed/facet:facet", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_types:mononoke_types", - ], -) - -rust_unittest( - name = "repo_metadata_checkpoint_test", - srcs = glob(["test/**/*.rs"]), - crate = "repo_metadata_checkpoint_test", - deps = [ - "fbsource//third-party/rust:anyhow", - ":repo_metadata_checkpoint", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mononoke_types:mononoke_types-mocks", - ], -) diff --git a/eden/mononoke/repo_stats_logger/TARGETS b/eden/mononoke/repo_stats_logger/TARGETS deleted file mode 100644 index 108dd214c92a8..0000000000000 --- a/eden/mononoke/repo_stats_logger/TARGETS +++ /dev/null @@ -1,39 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_stats_logger", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/scs/client/TARGETS b/eden/mononoke/scs/client/TARGETS deleted file mode 100644 index a688d9b08bfa9..0000000000000 --- a/eden/mononoke/scs/client/TARGETS +++ /dev/null @@ -1,56 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "scsc", - srcs = glob(["src/**/*.rs"]), - allow_oss_build = False, - os_deps = [ - ( - "linux", - [ - "//common/rust/build_info:build_info", - ], - ), - ( - "macos", - [ - "//common/rust/build_info:build_info", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:ansi_term", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:auto_impl", - "fbsource//third-party/rust:bytesize", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:num", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:textwrap", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-stream", - "fbsource//third-party/rust:unicode-truncate", - "fbsource//third-party/rust:unicode-width", - "//common/rust/gflags:gflags", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/hostcaps:hostcaps", - "//eden/mononoke/cmdlib/base_app:base_app", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/scs/if:source_control-rust-clients", - "//eden/mononoke/scs/raw_client_lib:scs_client_raw", - ], -) diff --git a/eden/mononoke/scs/client/tw/TARGETS b/eden/mononoke/scs/client/tw/TARGETS deleted file mode 100644 index b79ab10f42317..0000000000000 --- a/eden/mononoke/scs/client/tw/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -fbpkg.builder( - name = "scm.scsc", - buck_opts = fbpkg.buck_opts( - config = {"fbcode.dwp": "true"}, - mode = "opt", - ), - fail_on_redundant_configerator_fbpkg = False, - path_actions = { - "scsc": "fbcode//eden/mononoke/scs/client:scsc", - }, -) diff --git a/eden/mononoke/scs/if/TARGETS b/eden/mononoke/scs/if/TARGETS deleted file mode 100644 index 60a5d4a2eb001..0000000000000 --- a/eden/mononoke/scs/if/TARGETS +++ /dev/null @@ -1,52 +0,0 @@ -load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library") -load("//common/automock:automock.bzl", "thrift_plugin_automock") - -oncall("scm_server_infra") - -thrift_library( - name = "source_control", - java_versions = [ - "21", - ], - languages = [ - "hs2", - "rust", - "py3", - "cpp2", - "java-swift", - "py-deprecated", - ], - plugins = [ - thrift_plugin_automock, - ], - py3_namespace = "scm.service.thrift", - py_base_module = "scm.service.thrift", - rust_deps = [ - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:smallvec", - ], - rust_extra_srcs = [ - "extra_thrift.rs", - ], - rust_include_srcs = [ - "include_thrift.rs", - ], - thrift_cpp2_options = [ - "reflection", - ], - thrift_py_options = "utf8strings", - thrift_rust_options = [ - "deprecated_default_enum_min_i32", - "serde", - ], - thrift_srcs = { - "source_control.thrift": ["SourceControlService"], - }, - deps = [ - "//eden/mononoke/derived_data/if:derived_data_type_if", - "//eden/mononoke/megarepo_api/if:megarepo_configs", - "//fb303/thrift:fb303_core", - "//thrift/annotation:thrift", - ], -) diff --git a/eden/mononoke/scs/raw_client_lib/TARGETS b/eden/mononoke/scs/raw_client_lib/TARGETS deleted file mode 100644 index ff9494372ca70..0000000000000 --- a/eden/mononoke/scs/raw_client_lib/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "scs_client_raw", - srcs = glob(["src/**/*.rs"]), - allow_oss_build = False, - os_deps = [ - ( - "linux", - [ - "//common/rust/identity:identity", - "//common/rust/thrift/srclient:srclient", - "//eden/mononoke/scs/if:source_control-rust-srclients", - "//eden/mononoke/scs/if:source_control-rust-thriftclients", - ], - ), - ( - "macos", - [ - "//common/rust/identity:identity", - "//eden/mononoke/scs/if:source_control-rust-thriftclients", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:maplit", - "//c2p/secure_thrift/rust/client:x2pclient", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/scs/if:source_control-rust-clients", - "//eden/mononoke/scs/if:source_control-rust-x2pclients", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/scs/scs_errors/TARGETS b/eden/mononoke/scs/scs_errors/TARGETS deleted file mode 100644 index 85269e30e4821..0000000000000 --- a/eden/mononoke/scs/scs_errors/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "scs_errors", - srcs = glob(["src/**/*.rs"]), - deps = [ - "//eden/mononoke/async_requests:async_requests", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/megarepo_api:megarepo_error", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/scs/if:source_control-rust-services", - ], -) diff --git a/eden/mononoke/scs/scs_methods/TARGETS b/eden/mononoke/scs/scs_methods/TARGETS deleted file mode 100644 index 7fbad097a8a39..0000000000000 --- a/eden/mononoke/scs/scs_methods/TARGETS +++ /dev/null @@ -1,75 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("mononoke") - -rust_library( - name = "scs_methods", - srcs = glob(["src/**/*.rs"]), - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:futures-util", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/base_controller:factory_group", - "//common/rust/everstore:everstore_client", - "//common/rust/identity:identity", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//common/rust/srserver:srserver", - "//configerator/structs/common/fbtype:fbtypes-rust", - "//eden/mononoke/async_requests:async_requests", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_movement", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/commit_cloud/helpers:commit_cloud_helpers", - "//eden/mononoke/commit_cloud/types:commit_cloud_types", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/connection_security_checker:connection_security_checker", - "//eden/mononoke/common/dedupmap:dedupmap", - "//eden/mononoke/common/futures_watchdog:futures_watchdog", - "//eden/mononoke/common/memory:memory", - "//eden/mononoke/common/scribe_ext:scribe_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/hooks:hooks", - "//eden/mononoke/megarepo_api:megarepo_api", - "//eden/mononoke/megarepo_api:megarepo_config", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_api_hg:mononoke_api_hg", - "//eden/mononoke/mononoke_configs:mononoke_configs", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_authorization:repo_authorization", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/scs/if:source_control-rust-services", - "//eden/mononoke/scs/scs_errors:scs_errors", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/scm/lib/clientinfo:clientinfo", - "//login/if:login_objects_thrift-rust", - ], -) diff --git a/eden/mononoke/scs/scs_server/TARGETS b/eden/mononoke/scs/scs_server/TARGETS deleted file mode 100644 index f6af7dab08e48..0000000000000 --- a/eden/mononoke/scs/scs_server/TARGETS +++ /dev/null @@ -1,66 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("//eden/mononoke/facebook:lib.bzl", "tokio_dependency_test") - -oncall("scm_server_infra") - -rust_binary( - name = "scs_server", - srcs = glob(["src/**/*.rs"]), - cpp_deps = [ - ":metadata", - ], - cxx_bridge = "src/metadata.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:cxx", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-stream", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:tracing-glog", - "fbsource//third-party/rust:tracing-subscriber", - "//common/rust/base_controller:factory_group", - "//common/rust/base_controller:thrift_factory", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/panichandler:panichandler", - "//common/rust/srserver:srserver", - "//eden/mononoke/async_requests:async_requests_client", - "//eden/mononoke/cmdlib:cmdlib_logging", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/connection_security_checker:connection_security_checker", - "//eden/mononoke/common/memory:memory", - "//eden/mononoke/megarepo_api:megarepo_api", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/scs/if:source_control-rust-services", - "//eden/mononoke/scs/scs_methods:scs_methods", - "//eden/scm/lib/clientinfo:clientinfo", - "//fb303/thrift:fb303_core-rust", - "//fb303/thrift:fb303_core-rust-services", - ], -) - -cpp_library( - name = "metadata", - srcs = ["metadata.cpp"], - headers = ["metadata.h"], - deps = [ - "//eden/mononoke/scs/if:source_control-cpp2-metadata", - ], - exported_deps = [ - "//common/rust/srserver:metadata-header", - ], -) - -tokio_dependency_test( - name = "tokio_check", - rule = ":scs_server", -) diff --git a/eden/mononoke/server/context/TARGETS b/eden/mononoke/server/context/TARGETS deleted file mode 100644 index 3f0b38ea121d8..0000000000000 --- a/eden/mononoke/server/context/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "context", - srcs = glob(["src/**/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:governor", - "fbsource//third-party/rust:slog", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/slog_glog_fmt:slog_glog_fmt", - "//eden/mononoke/common/async_limiter:async_limiter", - "//eden/mononoke/common/scribe_ext:scribe_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/rate_limiting:rate_limiting", - "//eden/mononoke/server/metadata:metadata", - "//eden/mononoke/server/session_id:session_id", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) - -rust_binary( - name = "benchmark", - srcs = glob(["benchmark/**/*.rs"]), - autocargo = { - "cargo_target_config": { - "doc": False, - }, - }, - deps = [ - "fbsource//third-party/rust:chrono", - ":context", - ], -) diff --git a/eden/mononoke/server/metadata/TARGETS b/eden/mononoke/server/metadata/TARGETS deleted file mode 100644 index 2180d9b991bd4..0000000000000 --- a/eden/mononoke/server/metadata/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "metadata", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:trust-dns-resolver", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/server/session_id:session_id", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/server/qps/TARGETS b/eden/mononoke/server/qps/TARGETS deleted file mode 100644 index 3e59c29bcada9..0000000000000 --- a/eden/mononoke/server/qps/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_library( - name = "qps", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "//common/rust/fbwhoami:fbwhoami", - "//common/rust/ratelim:ratelim", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/fbinit:fbinit", - "//configerator/structs/common/server:region-rust", - ] + ([] if rust_oss.is_oss_build() else [ - "fbsource//third-party/rust:serde", - "//configerator/structs/scm/mononoke/qps:qps_config-rust", - "//thrift/lib/rust:fbthrift", - ]), -) diff --git a/eden/mononoke/server/repo_listener/TARGETS b/eden/mononoke/server/repo_listener/TARGETS deleted file mode 100644 index 0cbc0285ed0de..0000000000000 --- a/eden/mononoke/server/repo_listener/TARGETS +++ /dev/null @@ -1,68 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "repo_listener", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:futures-util", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:hyper", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:openssl", - "fbsource//third-party/rust:percent-encoding", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:slog-kvfilter", - "fbsource//third-party/rust:slog-term", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-openssl", - "fbsource//third-party/rust:tokio-util", - "//common/rust/shed/cached_config:cached_config", - "//common/rust/shed/failure_ext:failure_ext", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_ext:futures_ext", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/hostname:hostname", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/shed/stats:stats", - "//common/rust/shed/time_ext:time_ext", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cats:cats", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/connection_security_checker:connection_security_checker", - "//eden/mononoke/common/rust/slog_ext:slog_ext", - "//eden/mononoke/common/scribe_ext:scribe_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/edenapi_service:edenapi_service", - "//eden/mononoke/gotham_ext:gotham_ext", - "//eden/mononoke/hgproto:hgproto", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_configs:mononoke_configs", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/permission_checker:permission_checker", - "//eden/mononoke/quiet_stream:quiet_stream", - "//eden/mononoke/rate_limiting:rate_limiting", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/repo_permission_checker:repo_permission_checker", - "//eden/mononoke/repo_client:repo_client", - "//eden/mononoke/server/context:context", - "//eden/mononoke/server/metadata:metadata", - "//eden/mononoke/server/qps:qps", - "//eden/mononoke/server/session_id:session_id", - "//eden/mononoke/sshrelay:sshrelay", - "//eden/mononoke/wireproto_handler:wireproto_handler", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/server/session_id/TARGETS b/eden/mononoke/server/session_id/TARGETS deleted file mode 100644 index 4e727ed83a332..0000000000000 --- a/eden/mononoke/server/session_id/TARGETS +++ /dev/null @@ -1,11 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "session_id", - srcs = ["src/lib.rs"], - deps = [ - "fbsource//third-party/rust:rand", - ], -) diff --git a/eden/mononoke/sshrelay/TARGETS b/eden/mononoke/sshrelay/TARGETS deleted file mode 100644 index 7a56ff60c1197..0000000000000 --- a/eden/mononoke/sshrelay/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "sshrelay", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:tokio-util", - "fbsource//third-party/rust:zstd", - "fbsource//third-party/rust:zstd-safe", - "//common/rust/shed/netstring:netstring", - "//eden/mononoke/server/metadata:metadata", - ], -) diff --git a/eden/mononoke/streaming_clone/TARGETS b/eden/mononoke/streaming_clone/TARGETS deleted file mode 100644 index 0a6237af8a395..0000000000000 --- a/eden/mononoke/streaming_clone/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "new_streaming_clone", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:blake2", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/mercurial:mercurial_revlog", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_client:streaming_clone", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/tests/fixtures/TARGETS b/eden/mononoke/tests/fixtures/TARGETS deleted file mode 100644 index f68056d6cce8e..0000000000000 --- a/eden/mononoke/tests/fixtures/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "fixtures", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - ], - deps = [ - "fbcode//common/rust/shed/facet:facet", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/server/context:context", - "//eden/mononoke/tests/utils:tests_utils", - ], -) diff --git a/eden/mononoke/tests/integration/TARGETS b/eden/mononoke/tests/integration/TARGETS deleted file mode 100644 index 8e27a195addcf..0000000000000 --- a/eden/mononoke/tests/integration/TARGETS +++ /dev/null @@ -1,224 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup") -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -buck_filegroup( - name = "test_fixtures", - srcs = [ - "commitsync/all.json", - "commitsync/all_with_flipped_config.json", - "commitsync/current.json", - "commitsync/current.toml", - "commitsync/flipped_config.json", - "commitsync/flipped_config.toml", - "dbrtest_runner.py", - "fixtures/repo_with_newline_author_commit.tar.xz", - "gitexport_library.sh", - "library.sh", - "library-commit.sh", - "library-git-lfs.sh", - "library-push-redirector.sh", - "library-snapshot.sh", - "library-xrepo-git-submodule-expansion.sh", - "library-xrepo-sync-with-git-submodules.sh", - "raw_text.txt", - ], -) - -python_binary( - name = "integration_runner_real", - srcs = ["integration_runner_real.py"], - main_function = "eden.mononoke.tests.integration.integration_runner_real.run", - deps = [ - "fbsource//third-party/pypi/click:click", - "//eden/mononoke/tests/integration/facebook:lib_buck", - "//libfb/py:log", - ] if rust_oss.is_oss_build() else [ - "fbsource//third-party/pypi/click:click", - "//eden/mononoke/tests/integration/facebook:lib_buck", - "//eden/mononoke/tests/integration/facebook:lib_runner", - "//libfb/py:log", - ], -) - -python_binary( - name = "get_free_socket", - srcs = ["get_free_socket.py"], - main_module = "eden.mononoke.tests.integration.get_free_socket", -) - -python_binary( - name = "urlencode", - srcs = ["urlencode.py"], - main_module = "eden.mononoke.tests.integration.urlencode", -) - -dott_test( - name = "aliasverify", - disable_all_network_access_target = False, - dott_files = ["test-alias-verify.t"], - deps = [ - "//eden/mononoke:aliasverify", - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "benchmark-filestore", - dott_files = ["test-benchmark-filestore.t"], - deps = [ - "//eden/mononoke/benchmarks/filestore:benchmark_filestore", - ], -) - -dott_test( - name = "blobstore-healer", - dott_files = ["test-blobstore-healer.t"], - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:blobstore_healer", - ], -) - -dott_test( - name = "blobstore-healer-mysql", - dott_files = ["test-blobstore-healer.t"], - use_mysql = True, - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:blobstore_healer", - ], -) - -dott_test( - name = "bonsai-verify", - dott_files = ["test-bonsai-verify.t"], - deps = [ - "//eden/mononoke:bonsai_verify", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "check-git-wc", - dott_files = ["test-check-git-wc.t"], - deps = [ - "//eden/mononoke:check_git_wc", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "filenodes", - dott_files = glob([ - "test-filenodes*.t", - ]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "lfs", - dott_files = - [ - "test-push-protocol-lfs.t", - ] + glob( - [ - "test-infinitepush-*lfs.t", - "test-lfs*.t", - "test-remotefilelog-lfs*.t", - ], - exclude = ["test-lfs-server*.t"], - ), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/lfs_server:lfs_server", - ], -) - -dott_test( - name = "microwave", - dott_files = - [ - "test-cache-warmup-microwave.t", - ], - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/microwave:builder", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "mononoke-hg-sync-mysql", - dott_files = ["mononoke_hg_sync/test-mononoke-hg-sync-job-generate-bundles-loop.t"], - use_mysql = True, - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job", - ], -) - -dott_test( - name = "packer", - dott_files = ["test-packer.t"], - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:packer", - ], -) - -dott_test( - name = "redaction", - dott_files = glob(["test-redaction*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/admin:admin", - ], -) - -dott_test( - name = "restore-keys", - dott_files = glob(["test-restore-keys*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke/cmds/copy_blobstore_keys:copy_blobstore_keys", - "//eden/mononoke/walker:walker", - ], -) - -dott_test( - name = "testtool", - dott_files = glob([ - "test-testtool-*.t", - ]), - deps = [ - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "streaming-clone", - dott_files = glob(["test-streaming-clone*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/streaming_clone:new_streaming_clone", - ], -) diff --git a/eden/mononoke/tests/integration/backfill_derived/TARGETS b/eden/mononoke/tests/integration/backfill_derived/TARGETS deleted file mode 100644 index 3e545ecc769d8..0000000000000 --- a/eden/mononoke/tests/integration/backfill_derived/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "backfill-derived", - dott_files = glob( - ["*.t"], - ), - deps = [ - "//eden/mononoke:backfill_mapping", - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/backsyncer/TARGETS b/eden/mononoke/tests/integration/backsyncer/TARGETS deleted file mode 100644 index b2f4b737018a3..0000000000000 --- a/eden/mononoke/tests/integration/backsyncer/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "backsyncer", - dott_files = glob(["*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer_cmd", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/blobimport/TARGETS b/eden/mononoke/tests/integration/blobimport/TARGETS deleted file mode 100644 index a5f3cf2d0e1d5..0000000000000 --- a/eden/mononoke/tests/integration/blobimport/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "blobimport", - dott_files = glob(["*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/certs/TARGETS b/eden/mononoke/tests/integration/certs/TARGETS deleted file mode 100644 index ad2d1d47f4c61..0000000000000 --- a/eden/mononoke/tests/integration/certs/TARGETS +++ /dev/null @@ -1,11 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup") - -oncall("scm_server_infra") - -buck_filegroup( - name = "oss_test_certs", - srcs = glob([ - "*.crt", - "*.key", - ]), -) diff --git a/eden/mononoke/tests/integration/certs/facebook/TARGETS b/eden/mononoke/tests/integration/certs/facebook/TARGETS deleted file mode 100644 index 678be069e1932..0000000000000 --- a/eden/mononoke/tests/integration/certs/facebook/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup") - -oncall("scm_server_infra") - -buck_filegroup( - name = "test_certs", - srcs = glob([ - "*.crt", - "*.key", - "server.pem.seeds", - ]), -) diff --git a/eden/mononoke/tests/integration/cross_repo/TARGETS b/eden/mononoke/tests/integration/cross_repo/TARGETS deleted file mode 100644 index c9fbde1ed8f17..0000000000000 --- a/eden/mononoke/tests/integration/cross_repo/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "cross-repo", - disable_all_network_access_target = False, - dott_files = glob(["*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer_cmd", - "//eden/mononoke/commit_rewriting/commit_validator:commit_validator", - "//eden/mononoke/commit_rewriting/megarepo:megarepotool", - "//eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job:mononoke_x_repo_sync_job", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/git_server:git_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/edenapi/TARGETS b/eden/mononoke/tests/integration/edenapi/TARGETS deleted file mode 100644 index 60fa75f67e8d0..0000000000000 --- a/eden/mononoke/tests/integration/edenapi/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "edenapi", - dott_files = - glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/git_server:git_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/ephemeral_store/TARGETS b/eden/mononoke/tests/integration/ephemeral_store/TARGETS deleted file mode 100644 index 474f247c64cc6..0000000000000 --- a/eden/mononoke/tests/integration/ephemeral_store/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "ephemeral-store", - dott_files = glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/facebook/TARGETS b/eden/mononoke/tests/integration/facebook/TARGETS deleted file mode 100644 index 20bc9b6042462..0000000000000 --- a/eden/mononoke/tests/integration/facebook/TARGETS +++ /dev/null @@ -1,410 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup", "buck_sh_binary") -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -python_library( - name = "lib_buck", - srcs = ["lib_buck.py"], -) - -python_library( - name = "lib_runner", - srcs = ["lib_runner.py"], - deps = [ - "fbsource//third-party/pypi/click:click", - ":lib_buck", - "//common/db/tests:DbDef", - "//configerator/distribution/api/py:configerator_client", - "//configerator/structs/mysql:table_schema-py", - "//dba/ephemeral_shards/if:ephemeral_shards_thrift-py", - "//libfb/py:db_locator", - ], -) - -buck_filegroup( - name = "facebook_test_fixtures", - srcs = [ - "fb_library.sh", - "git_pushrebase/library-git-pushrebase.sh", - "verify_integrity_mocked_diff_info.json", - ], -) - -python_binary( - name = "generate_manifest", - srcs = ["generate_manifest.py"], - main_function = "eden.mononoke.tests.integration.facebook.generate_manifest.main", - deps = [ - ":lib_buck", - ], -) - -buck_sh_binary( - name = "disable-all-network-access", - main = "disable-all-network-access.sh", -) - -dott_test( - name = "derived-data-service", - disable_all_network_access_target = False, - dott_files = glob(["test-derived-data-service*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/facebook/derived_data_service:2ds_client", - "//eden/mononoke/facebook/derived_data_service:derivation_worker", - "//eden/mononoke/facebook/derived_data_service:derived_data_service", - "//eden/mononoke/scs/client:scsc", - "//eden/mononoke/scs/scs_server:scs_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/facebook/backfill_bonsai_blob_mapping:backfill_bonsai_blob_mapping", - "//eden/mononoke/tools/testtool:testtool", - "//zeus/zelos/interactive_cli:zeloscli", - ], -) - -dott_test( - name = "derived-data-tailer", - disable_all_network_access_target = False, - dott_files = glob(["test-derived-data-tailer*.t"]), - deps = [ - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/facebook/derived_data_tailer:derived_data_tailer", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "test-bookmark-service", - disable_all_network_access_target = False, - dott_files = glob(["test-bookmark-service*.t"]), - deps = [ - "//eden/mononoke/facebook/bookmark_service:bookmark_service_client_cli", - "//eden/mononoke/facebook/bookmark_service:bookmark_service_server", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "test-server-and-bookmark-service", - disable_all_network_access_target = False, - dott_files = glob(["test-server-and-bookmark-service-*.t"]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/facebook/bookmark_service:bookmark_service_client_cli", - "//eden/mononoke/facebook/bookmark_service:bookmark_service_server", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "gitbundle", - disable_all_network_access_target = False, - dott_files = - glob([ - "test-gitbundle*.t", - ]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/git/facebook/git_move_bookmark:git_move_bookmark", - "//eden/mononoke/git/facebook/remote_gitimport:remote_gitimport", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/lfs_server:lfs_server", - "//eden/mononoke/scs/client:scsc", - "//eden/mononoke/scs/scs_server:scs_server", - "//eden/mononoke/tools/admin:admin", - ], -) - -dott_test( - name = "verify-integrity", - disable_all_network_access_target = False, - dott_files = [ - "test-hook-verify-integrity.t", - ], - deps = [ - "//common/tools/thriftdbg:thriftdbg", - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//security/source_control/verify_integrity:verify_integrity", - "//security/source_control/verify_integrity/service:verify_integrity_service", - ], -) - -dott_test( - name = "hooks", - dott_files = - glob( - [ - "test-hook-*.t", - ], - exclude = [ - "test-hook-verify-integrity.t", - ], - ), - deps = [ - "//common/tools/thriftdbg:thriftdbg", - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//signedsources:fixtures", - ], -) - -dott_test( - name = "lfs-server", - dott_files = glob(["test-lfs-server*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke/lfs_server:lfs_server", - ], -) - -dott_test( - name = "mirror-hg-commits", - # Components linked with SM library invoke some network calls to loopback - # address for configerator and ODS even without being part of actual execution. - # Skip the below tests until RCA is completed for SM integration so - # that integration tests do not time-out due to failed network call retries. - # TODO(rajshar): Investigate root cause for network calls from SM Client. - # Post: https://fb.workplace.com/groups/sm.users/permalink/2490367831097595/ - disable_all_network_access_target = False, - dott_files = glob([ - "test-mirror-hg-commits*.t", - ]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke/commit_rewriting/megarepo:megarepotool", - "//eden/mononoke/facebook/mirror_hg_commits:mirror_hg_commits", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "server-needs-network", - disable_all_network_access_target = False, - dott_files = [ - # Purposely not disabling network as this tests reverse dns lookups - "test-metadata-fb-host.t", - "test-metadata.t", - # Purposely not disabling network as this needs to make TLS connections. - "test-cat-auth.t", - ], - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "server", - dott_files = glob( - [ - "test-metadata*.t", - "test-untrusted-env*.t", - ], - exclude = [ - "test-metadata-fb-host.t", - "test-metadata.t", - ], - ) + [ - "test-per-repo-acl.t", - "test-post-push-logging-identities.t", - "test-readonly-server.t", - "test-server.t", - "test-server-mononokepeer-proxy.t", - ], - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "tools-example", - dott_files = glob( - [ - "test-tools-example*.t", - ], - ), - deps = [ - "//eden/mononoke/tools/example:example", - ], -) - -dott_test( - name = "scs", - disable_all_network_access_target = False, - dott_files = glob( - ["test-scs*.t"], - exclude = [ - "test-scs-git*.t", - "test-scs-land-service*.t", - ], - ), - enable_async_requests_worker = True, - deps = [ - "//eden/mononoke:backfill_mapping", - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer_cmd", - "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job", - "//eden/mononoke/scs/client:scsc", - "//eden/mononoke/scs/scs_server:scs_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "scs-git", - disable_all_network_access_target = False, - dott_files = glob(["test-scs-git*.t"]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/scs/client:scsc", - "//eden/mononoke/scs/scs_server:scs_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "scs-land-service", - disable_all_network_access_target = False, - dott_files = glob(["test-scs-land-service*.t"]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer_cmd", - "//eden/mononoke/land_service/facebook/server:land_service", - "//eden/mononoke/scs/client:scsc", - "//eden/mononoke/scs/scs_server:scs_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "land_service", - disable_all_network_access_target = False, - dott_files = glob(["test-land-service*.t"]), - deps = [ - "//eden/mononoke:backfill_mapping", - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer_cmd", - "//eden/mononoke/land_service/facebook/server:land_service", - "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "snapshot", - disable_all_network_access_target = False, - dott_files = glob(["test-snapshot*.t"]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/scs/client:scsc", - "//eden/mononoke/scs/scs_server:scs_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "slow-bookmark-mover", - dott_files = glob([ - "test-mononoke-slow-bookmark-mover*.t", - ]), - deps = [ - "//eden/mononoke:bonsai_verify", - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/megarepo:megarepotool", - "//eden/mononoke/facebook/slow_bookmark_mover:slow_bookmark_mover", - "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "remote-gitimport", - disable_all_network_access_target = False, - dott_files = glob(["test-remote-gitimport*.t"]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/git/facebook/git_move_bookmark:git_move_bookmark", - "//eden/mononoke/git/facebook/remote_gitimport:remote_gitimport", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/lfs_server:lfs_server", - "//eden/mononoke/scs/client:scsc", - "//eden/mononoke/scs/scs_server:scs_server", - "//eden/mononoke/tools/admin:admin", - ], -) - -dott_test( - name = "cross-repo-and-scs", - disable_all_network_access_target = False, - dott_files = glob([ - "test-cross-repo-and-scs-*.t", - ]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer_cmd", - "//eden/mononoke/commit_rewriting/commit_validator:commit_validator", - "//eden/mononoke/commit_rewriting/megarepo:megarepotool", - "//eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job:mononoke_x_repo_sync_job", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/git_server:git_server", - "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job", - "//eden/mononoke/scs/client:scsc", - "//eden/mononoke/scs/scs_server:scs_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "admin", - dott_files = glob(["test-admin-*.t"]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/facebook/backfill_bonsai_blob_mapping:backfill_bonsai_blob_mapping", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "backfill-bonsai-blob-mapping", - disable_all_network_access_target = False, - dott_files = glob(["test-backfill-bonsai-blob-mapping-*.t"]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/facebook/backfill_bonsai_blob_mapping:backfill_bonsai_blob_mapping", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -dott_test( - name = "repo_metadata_logger", - disable_all_network_access_target = False, - dott_files = glob(["test-repo-metadata-logger-*.t"]), - deps = [ - "//eden/mononoke/tools/facebook/repo_metadata_logger:repo_metadata_logger", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/facebook/belljar/TARGETS b/eden/mononoke/tests/integration/facebook/belljar/TARGETS deleted file mode 100644 index beedbc33b4df8..0000000000000 --- a/eden/mononoke/tests/integration/facebook/belljar/TARGETS +++ /dev/null @@ -1,35 +0,0 @@ -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") -load("@fbsource//tools/build_defs:scrut_test.bzl", "scrut_test") - -oncall("scm_server_infra") - -python_library( - name = "scsc_allowlist", - srcs = ["scsc_allowlist.py"], - deps = [ - "//belljar/if:dependencies-py3-types", - ], -) - -# migeedz, Pyre: commenting out this test since it generates type errors for generated files. -# belljar_scrut_test( -# name = "scsc_belljar_scrut", -# srcs = ["scsc_scrut.md"], -# allowlist_module = "eden.mononoke.tests.integration.facebook.belljar.allowlist", -# fbcode_path_prefix_triggers = [ -# "eden/mononoke/scs/client", -# ], -# oncall = "scm_server_infra", -# rpms = ["fb-scsc"], -# deps = [":scsc_allowlist"], -# ) - -scrut_test( - name = "scsc_scrut", - srcs = [ - "scsc_scrut.md", - ], - env = { - "scsc": "$(exe //eden/mononoke/scs/client:scsc)", - }, -) diff --git a/eden/mononoke/tests/integration/facebook/commit_cloud/TARGETS b/eden/mononoke/tests/integration/facebook/commit_cloud/TARGETS deleted file mode 100644 index 4a52c3b05c45a..0000000000000 --- a/eden/mononoke/tests/integration/facebook/commit_cloud/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "commitcloud", - disable_all_network_access_target = False, - dott_files = - glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/facebook/git_pushrebase/TARGETS b/eden/mononoke/tests/integration/facebook/git_pushrebase/TARGETS deleted file mode 100644 index ddea2678c5080..0000000000000 --- a/eden/mononoke/tests/integration/facebook/git_pushrebase/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "git-pushrebase", - disable_all_network_access_target = False, - dott_files = glob(["*.t"]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer_cmd", - "//eden/mononoke/commit_rewriting/megarepo:megarepotool", - "//eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job:mononoke_x_repo_sync_job", - "//eden/mononoke/git/facebook/pushrebase:git_pushrebase", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/git_server:git_server", - "//eden/mononoke/scs/client:scsc", - "//eden/mononoke/scs/scs_server:scs_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/facebook/mononoke_re_cas/TARGETS b/eden/mononoke/tests/integration/facebook/mononoke_re_cas/TARGETS deleted file mode 100644 index 60825c796781c..0000000000000 --- a/eden/mononoke/tests/integration/facebook/mononoke_re_cas/TARGETS +++ /dev/null @@ -1,40 +0,0 @@ -load("@fbcode//target_determinator/macros:ci_hint.bzl", "ci_hint") -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -# Test suit for testing of Mononoke CAS Sync and also -# for testing Sapling/Cas integration when a repo is synced - -# TODO(liubovd): fix flaky LFS test -dott_test( - name = "mononoke_re_cas", - disable_all_network_access_target = False, - dott_files = glob( - [ - "*.t", - ], - exclude = ["test-sapling-cas-lfs-goto.t"], - ), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/lfs_server:lfs_server", - "//eden/mononoke/mononoke_cas_sync_job:mononoke_cas_sync_job", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -# This adds some artificial direct dependecies to CI graph to make it look like deps are closer -ci_hint( - ci_deps = [ - "fbcode//remote_execution/client_lib/wrappers/rust:re_client_lib", - "fbcode//remote_execution/client_lib/wrappers/rust:external_re_client_lib", - ], - ci_srcs = ["fbcode/eden/scm/**"], - reason = "Those tests should be triggered on sapling and RE diffs despite the longer CI distance", - target = "mononoke_re_cas", -) diff --git a/eden/mononoke/tests/integration/git_lfs/TARGETS b/eden/mononoke/tests/integration/git_lfs/TARGETS deleted file mode 100644 index 1d6d01cc4c490..0000000000000 --- a/eden/mononoke/tests/integration/git_lfs/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "git_lfs", - dott_files = - glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke/git_server:git_server", - "//eden/mononoke/lfs_server:lfs_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/gitbundle/TARGETS b/eden/mononoke/tests/integration/gitbundle/TARGETS deleted file mode 100644 index 478d6078f321f..0000000000000 --- a/eden/mononoke/tests/integration/gitbundle/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "gitbundle", - disable_all_network_access_target = False, - dott_files = - glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/gitexport/TARGETS b/eden/mononoke/tests/integration/gitexport/TARGETS deleted file mode 100644 index b8eb3ad0c5bb7..0000000000000 --- a/eden/mononoke/tests/integration/gitexport/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "gitexport", - disable_all_network_access_target = False, - dott_files = glob( - ["*.t"], - ), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/git/gitexport:gitexport", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/gitimport/TARGETS b/eden/mononoke/tests/integration/gitimport/TARGETS deleted file mode 100644 index be40aab7b20ed..0000000000000 --- a/eden/mononoke/tests/integration/gitimport/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "gitimport", - disable_all_network_access_target = False, - dott_files = - glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:bonsai_verify", - "//eden/mononoke:mononoke", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/lfs_server:lfs_server", - "//eden/mononoke/tools/admin:admin", - ], -) diff --git a/eden/mononoke/tests/integration/hooks/TARGETS b/eden/mononoke/tests/integration/hooks/TARGETS deleted file mode 100644 index b5e5e6d781b2e..0000000000000 --- a/eden/mononoke/tests/integration/hooks/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "hooks", - dott_files = - glob( - [ - "*.t", - ], - exclude = ["test-hook-tailer.t"], - ), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/import/TARGETS b/eden/mononoke/tests/integration/import/TARGETS deleted file mode 100644 index 305996548f7f7..0000000000000 --- a/eden/mononoke/tests/integration/import/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "import", - dott_files = glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke/tools/import:import", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/lfs_server/TARGETS b/eden/mononoke/tests/integration/lfs_server/TARGETS deleted file mode 100644 index f256830b1b15c..0000000000000 --- a/eden/mononoke/tests/integration/lfs_server/TARGETS +++ /dev/null @@ -1,15 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "lfs-server", - dott_files = glob(["*.t"]), - deps = [ - "//eden/mononoke/lfs_server:lfs_server", - "//eden/mononoke/tools/import:import", - ], -) diff --git a/eden/mononoke/tests/integration/megarepo/TARGETS b/eden/mononoke/tests/integration/megarepo/TARGETS deleted file mode 100644 index 4c79cf210dfb0..0000000000000 --- a/eden/mononoke/tests/integration/megarepo/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "mega-repo", - disable_all_network_access_target = False, - dott_files = glob(["*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/megarepo:megarepotool", - "//eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job:mononoke_x_repo_sync_job", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/modern_sync/TARGETS b/eden/mononoke/tests/integration/modern_sync/TARGETS deleted file mode 100644 index 9ec2f155e4a71..0000000000000 --- a/eden/mononoke/tests/integration/modern_sync/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "modern_sync", - dott_files = - glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/modern_sync:mononoke_modern_sync_job", - ], -) diff --git a/eden/mononoke/tests/integration/mononoke_git_server/TARGETS b/eden/mononoke/tests/integration/mononoke_git_server/TARGETS deleted file mode 100644 index 8faf5533b6697..0000000000000 --- a/eden/mononoke/tests/integration/mononoke_git_server/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "mononoke-git-server", - dott_files = - glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job:mononoke_x_repo_sync_job", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/git_server:git_server", - "//eden/mononoke/lfs_server:lfs_server", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/mononoke_hg_sync/TARGETS b/eden/mononoke/tests/integration/mononoke_hg_sync/TARGETS deleted file mode 100644 index 64ac51a4df2f5..0000000000000 --- a/eden/mononoke/tests/integration/mononoke_hg_sync/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "mononoke_hg_sync", - disable_all_network_access_target = False, - dott_files = glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:bonsai_verify", - "//eden/mononoke:mononoke", - "//eden/mononoke/lfs_server:lfs_server", - "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/mononoke_re_cas/TARGETS b/eden/mononoke/tests/integration/mononoke_re_cas/TARGETS deleted file mode 100644 index 90e1a891eaad1..0000000000000 --- a/eden/mononoke/tests/integration/mononoke_re_cas/TARGETS +++ /dev/null @@ -1,34 +0,0 @@ -load("@fbcode//target_determinator/macros:ci_hint.bzl", "ci_hint") -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -# Test suit for testing of Mononoke CAS Sync and also -# for testing Sapling/Cas integration when a repo is synced - -dott_test( - name = "mononoke_re_cas", - disable_all_network_access_target = False, - dott_files = glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/mononoke_cas_sync_job:mononoke_cas_sync_job", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) - -# This adds some artificial direct dependecies to CI graph to make it look like deps are closer -ci_hint( - ci_deps = [ - "fbcode//remote_execution/client_lib/wrappers/rust:re_client_lib", - "fbcode//remote_execution/client_lib/wrappers/rust:external_re_client_lib", - ], - reason = "Those tests should be triggered on RE diffs despite the longer CI distance", - target = "mononoke_re_cas", -) diff --git a/eden/mononoke/tests/integration/newadmin/TARGETS b/eden/mononoke/tests/integration/newadmin/TARGETS deleted file mode 100644 index 92bfe87e9be81..0000000000000 --- a/eden/mononoke/tests/integration/newadmin/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "admin", - disable_all_network_access_target = False, - dott_files = glob([ - "*.t", - ]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/push_redirector/TARGETS b/eden/mononoke/tests/integration/push_redirector/TARGETS deleted file mode 100644 index df588da3d5c8c..0000000000000 --- a/eden/mononoke/tests/integration/push_redirector/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "push_redirector", - disable_all_network_access_target = False, - dott_files = glob(["*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer_cmd", - "//eden/mononoke/commit_rewriting/megarepo:megarepotool", - "//eden/mononoke/commit_rewriting/mononoke_x_repo_sync_job:mononoke_x_repo_sync_job", - "//eden/mononoke/mononoke_hg_sync_job:mononoke_hg_sync_job", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/repo_import/TARGETS b/eden/mononoke/tests/integration/repo_import/TARGETS deleted file mode 100644 index 1c185572b7650..0000000000000 --- a/eden/mononoke/tests/integration/repo_import/TARGETS +++ /dev/null @@ -1,18 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "repo_import", - dott_files = glob(["*.t"]), - deps = [ - "//eden/mononoke:mononoke", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer_cmd", - "//eden/mononoke/repo_import:repo_import", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/server/TARGETS b/eden/mononoke/tests/integration/server/TARGETS deleted file mode 100644 index b444f3b615605..0000000000000 --- a/eden/mononoke/tests/integration/server/TARGETS +++ /dev/null @@ -1,46 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "server", - dott_files = - glob( - [ - "*.t", - ], - ), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - # TODO: This is required for test-getpackv2-multibyte-filenames.t, as - # hg can't handle UTF-8 file names correctly. Once that is fixed, this - # dep can be removed. - "//eden/mononoke/git/gitimport:gitimport", - "//eden/mononoke/tests/integration:urlencode", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - "//eden/mononoke:blobstore_healer", - ], -) - -dott_test( - name = "server-mysql", - dott_files = - [ - "test-infinitepush-mutation.t", - "test-pushrebase.t", - "test-server-init.t", - "test-server-lookup.t", - ], - use_mysql = True, - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - ], -) diff --git a/eden/mononoke/tests/integration/sqlblob/TARGETS b/eden/mononoke/tests/integration/sqlblob/TARGETS deleted file mode 100644 index 70a3e07686878..0000000000000 --- a/eden/mononoke/tests/integration/sqlblob/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "sqlblob", - dott_files = glob(["*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:mononoke", - "//eden/mononoke:sqlblob_gc", - ], -) diff --git a/eden/mononoke/tests/integration/walker/TARGETS b/eden/mononoke/tests/integration/walker/TARGETS deleted file mode 100644 index 11c2d5bc70234..0000000000000 --- a/eden/mononoke/tests/integration/walker/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load( - "//eden/mononoke/tests/integration/facebook:fb_manifest_deps.bzl", - "dott_test", -) - -oncall("scm_server_infra") - -dott_test( - name = "walker", - disable_all_network_access_target = False, - dott_files = glob(["*.t"]), - deps = [ - "//eden/mononoke:blobimport", - "//eden/mononoke:packer", - "//eden/mononoke/tools/admin:admin", - "//eden/mononoke/tools/testtool:testtool", - "//eden/mononoke/walker:walker", - ], -) diff --git a/eden/mononoke/tests/utils/TARGETS b/eden/mononoke/tests/utils/TARGETS deleted file mode 100644 index 89d13ab0bf49a..0000000000000 --- a/eden/mononoke/tests/utils/TARGETS +++ /dev/null @@ -1,46 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -python_binary( - name = "generate_buck_target_deps", - srcs = [ - "generate_buck_target_deps.py", - ], - main_function = "eden.mononoke.tests.utils.generate_buck_target_deps.main", -) - -rust_library( - name = "tests_utils", - srcs = glob(["src/**/*.rs"]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rand_distr", - "//common/rust/shed/facet:facet", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data/content_manifest_derivation:content_manifest_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/drawdag:drawdag", - ], -) diff --git a/eden/mononoke/third_party/git_delta/TARGETS b/eden/mononoke/third_party/git_delta/TARGETS deleted file mode 100644 index b1b96dc1c131b..0000000000000 --- a/eden/mononoke/third_party/git_delta/TARGETS +++ /dev/null @@ -1,58 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs/rust_library.bzl", "rust_library") - -oncall("mercurial_release") - -cpp_library( - name = "git_delta_c", - srcs = glob([ - "original_sources/**/*.c", - ]), - headers = glob([ - "original_sources/**/*.h", - ]), - compiler_flags = [ - "-DNO_OPENSSL=1", - "-std=c99", - ], - exported_external_deps = [ - ("zlib", None, "z"), - ], -) - -cpp_library( - name = "bridge", - srcs = ["ffi/bridge.c"], - compiler_flags = [ - "-DNO_OPENSSL=1", - "-std=c99", - ], - deps = [ - ":git_delta_c", - ], - exported_external_deps = [ - ("zlib", None, "z"), - ], -) - -rust_library( - name = "git_delta", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "extra_buck_dependencies": { - "build-dependencies": ["fbsource//third-party/rust:cc"], - "dependencies": ["fbsource//third-party/rust:libz-sys"], - }, - }, - }, - cpp_deps = [ - ":bridge", - ], - test_deps = [ - "//eden/mononoke/mononoke_macros:mononoke_macros", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - ], -) diff --git a/eden/mononoke/time_window_counter/TARGETS b/eden/mononoke/time_window_counter/TARGETS deleted file mode 100644 index d36bbfa855e09..0000000000000 --- a/eden/mononoke/time_window_counter/TARGETS +++ /dev/null @@ -1,14 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "time_window_counter", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "//common/rust/ratelim:ratelim", - "//common/rust/shed/fbinit:fbinit", - ], -) diff --git a/eden/mononoke/tools/admin/TARGETS b/eden/mononoke/tools/admin/TARGETS deleted file mode 100644 index bd8b365464bd3..0000000000000 --- a/eden/mononoke/tools/admin/TARGETS +++ /dev/null @@ -1,139 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("scm_server_infra") - -rust_binary( - name = "admin", - srcs = glob([ - "src/**/*.rs", - ]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"sapling-dag-types": {"features": [ - "for-tests", - "serialize-abomonation", - ]}}}, - "extra_buck_dependencies": {"dependencies": [ - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/dag-types:dag-types", - ]}, - }}, - test_deps = [ - "fbsource//third-party/rust:maplit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_factory:test_repo_factory", - "//eden/mononoke/tests/utils:tests_utils", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-stream", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:flate2", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:gix-hash", - "fbsource//third-party/rust:gix-object", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:prettytable-rs", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-util", - "fbsource//third-party/rust:walkdir", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/async_requests:async_requests", - "//eden/mononoke/async_requests:async_requests_client", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:cacheblob", - "//eden/mononoke/blobstore:ephemeral_blobstore", - "//eden/mononoke/bonsai_git_mapping:bonsai_git_mapping", - "//eden/mononoke/bonsai_globalrev_mapping:bonsai_globalrev_mapping", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bonsai_svnrev_mapping:bonsai_svnrev_mapping", - "//eden/mononoke/bonsai_tag_mapping:bonsai_tag_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_cache", - "//eden/mononoke/bookmarks:bookmarks_movement", - "//eden/mononoke/cas_client:cas_client", - "//eden/mononoke/cas_client:changesets_uploader", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/cmdlib:cmdlib_cross_repo", - "//eden/mononoke/cmdlib/commit_id:commit_id", - "//eden/mononoke/cmdlib/displaying:cmdlib_displaying", - "//eden/mononoke/cmdlib/displaying/graph:print_graph", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/scrubbing:cmdlib_scrubbing", - "//eden/mononoke/commit_rewriting/backsyncer:backsyncer", - "//eden/mononoke/commit_rewriting/cross_repo_sync:cross_repo_sync", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/derived_data:blame", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:case_conflict_skeleton_manifest", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:deleted_manifest", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/derived_data/content_manifest_derivation:content_manifest_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/features/redaction:redaction", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/git/git_types:git_types", - "//eden/mononoke/git/packfile:packfile", - "//eden/mononoke/git/protocol:protocol", - "//eden/mononoke/git_symbolic_refs:git_symbolic_refs", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/megarepo_api:megarepo_error", - "//eden/mononoke/megarepo_api:pushredirect", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_api:mononoke_api", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/mutable_renames:mutable_renames", - "//eden/mononoke/phases:phases", - "//eden/mononoke/pushrebase:pushrebase", - "//eden/mononoke/pushrebase_mutation_mapping:pushrebase_mutation_mapping", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph_types:commit_graph_types", - "//eden/mononoke/repo_attributes/commit_graph/preloaded_commit_graph_storage:preloaded_commit_graph_storage", - "//eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage:sql_commit_graph_storage", - "//eden/mononoke/repo_attributes/repo_bookmark_attrs:repo_bookmark_attrs", - "//eden/mononoke/repo_attributes/repo_cross_repo:repo_cross_repo", - "//eden/mononoke/repo_attributes/repo_derivation_queues:repo_derivation_queues", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_attributes/repo_lock:repo_lock", - "//eden/mononoke/repo_attributes/sql_query_config:sql_query_config", - "//eden/mononoke/repo_factory:repo_factory", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/server/context:context", - "//thrift/lib/rust:fbthrift", - ] + ([] if rust_oss.is_oss_build() else [ - "fbsource//third-party/rust:serde", - "//common/rust/shed/justknobs_stub:justknobs", - "//common/rust/mysql:mysql_client", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/blobstore:fileblob", - "//eden/mononoke/blobstore:redactedblobstore", - "//eden/mononoke/facebook/git_server/push_poller/lib/command:command", - "//eden/mononoke/facebook/git_server/push_poller/lib/storage:storage", - "//eden/mononoke/git_source_of_truth:git_source_of_truth", - "//eden/mononoke/repo_attributes/bonsai_blob_mapping:bonsai_blob_mapping", - "//eden/mononoke/repo_attributes/deletion_log:deletion_log", - ]), -) diff --git a/eden/mononoke/tools/example/TARGETS b/eden/mononoke/tools/example/TARGETS deleted file mode 100644 index a3b387ef4d2b3..0000000000000 --- a/eden/mononoke/tools/example/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "example", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - ], -) diff --git a/eden/mononoke/tools/executor/TARGETS b/eden/mononoke/tools/executor/TARGETS deleted file mode 100644 index bc0c8ef3e883c..0000000000000 --- a/eden/mononoke/tools/executor/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "executor", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - ], -) diff --git a/eden/mononoke/tools/executor/facebook/TARGETS b/eden/mononoke/tools/executor/facebook/TARGETS deleted file mode 100644 index ed7e93d1be493..0000000000000 --- a/eden/mononoke/tools/executor/facebook/TARGETS +++ /dev/null @@ -1,10 +0,0 @@ -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -fbpkg.builder( - name = "mononoke.shardmanager.test", - path_actions = { - "executor": "//eden/mononoke/tools/executor:executor", - }, -) diff --git a/eden/mononoke/tools/facebook/backfill_bonsai_blob_mapping/TARGETS b/eden/mononoke/tools/facebook/backfill_bonsai_blob_mapping/TARGETS deleted file mode 100644 index 6b1dd0c2b8524..0000000000000 --- a/eden/mononoke/tools/facebook/backfill_bonsai_blob_mapping/TARGETS +++ /dev/null @@ -1,49 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "backfill_bonsai_blob_mapping", - srcs = glob([ - "src/**/*.rs", - ]), - test_deps = ["//eden/mononoke/mononoke_macros:mononoke_macros"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:smallvec", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/scrubbing:cmdlib_scrubbing", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/derived_data:blame", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:deleted_manifest", - "//eden/mononoke/derived_data:fastlog", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_repos:mononoke_repos", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/mutable_counters:mutable_counters", - "//eden/mononoke/repo_attributes/bonsai_blob_mapping:bonsai_blob_mapping", - "//eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage:sql_commit_graph_storage", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) diff --git a/eden/mononoke/tools/facebook/config_parser/TARGETS b/eden/mononoke/tools/facebook/config_parser/TARGETS deleted file mode 100644 index 2d6fab71ea7b4..0000000000000 --- a/eden/mononoke/tools/facebook/config_parser/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "config_parser", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - ], -) diff --git a/eden/mononoke/tools/facebook/derived_data_metrics_tailer/TARGETS b/eden/mononoke/tools/facebook/derived_data_metrics_tailer/TARGETS deleted file mode 100644 index 99b0f4fb80c51..0000000000000 --- a/eden/mononoke/tools/facebook/derived_data_metrics_tailer/TARGETS +++ /dev/null @@ -1,44 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -rust_binary( - name = "derived_data_metrics_tailer", - srcs = glob(["src/**/*.rs"]), - test_deps = [ - "fbsource//third-party/rust:tokio", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:enum-map", - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:lru", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:slog-scope", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:vec1", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/fbinit:fbinit-tokio", - "//common/rust/shed/services:services", - "//common/rust/shed/stats:stats", - "//eden/mononoke/cmdlib:cmdlib_logging", - "//eden/mononoke/common/retry:retry", - "//eden/mononoke/derived_data:derived_data_constants", - "//eden/mononoke/scs/if:source_control-rust", - "//eden/mononoke/scs/raw_client_lib:scs_client_raw", - ], -) - -fbpkg.builder( - name = "mononoke.derived_data.metrics_tailer", - path_actions = { - "derived_data_metrics_tailer": ":derived_data_metrics_tailer", - "swift": "//scribeutil/swift:swift", - }, -) diff --git a/eden/mononoke/tools/facebook/derived_data_tailer/TARGETS b/eden/mononoke/tools/facebook/derived_data_tailer/TARGETS deleted file mode 100644 index 7d43ade02bf9f..0000000000000 --- a/eden/mononoke/tools/facebook/derived_data_tailer/TARGETS +++ /dev/null @@ -1,44 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -rust_binary( - name = "derived_data_tailer", - srcs = glob([ - "src/**/*.rs", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/futures_stats:futures_stats", - "//common/rust/shed/justknobs_stub:justknobs", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_repos:mononoke_repos", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - ], -) - -fbpkg.builder( - name = "mononoke.derived_data_tailer", - path_actions = { - "derived_data_tailer": ":derived_data_tailer", - }, -) diff --git a/eden/mononoke/tools/facebook/repo_metadata_logger/TARGETS b/eden/mononoke/tools/facebook/repo_metadata_logger/TARGETS deleted file mode 100644 index 9f1140a9dbb6f..0000000000000 --- a/eden/mononoke/tools/facebook/repo_metadata_logger/TARGETS +++ /dev/null @@ -1,46 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("//fbpkg:fbpkg.bzl", "fbpkg") - -oncall("scm_server_infra") - -rust_binary( - name = "repo_metadata_logger", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//dsi/logger/configs/SCMRepoMetadataV2LoggerConfig:s_c_m_repo_metadata_v2_rust_logger", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/bookmarks:bookmarks_cache", - "//eden/mononoke/cmdlib:environment", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/features/repo_metadata:repo_metadata", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_metadata_checkpoint:repo_metadata_checkpoint", - "//eden/mononoke/server/context:context", - ], -) - -fbpkg.builder( - name = "mononoke.repo_metadata_logger", - path_actions = { - "repo_metadata_logger": ":repo_metadata_logger", - }, -) diff --git a/eden/mononoke/tools/import/TARGETS b/eden/mononoke/tools/import/TARGETS deleted file mode 100644 index dcdb7842349df..0000000000000 --- a/eden/mononoke/tools/import/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "import", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:futures", - "//common/rust/shed/borrowed:borrowed", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/lfs_import_lib:lfs_import_lib", - "//eden/mononoke/mercurial:mercurial_types", - ], -) diff --git a/eden/mononoke/tools/testtool/TARGETS b/eden/mononoke/tools/testtool/TARGETS deleted file mode 100644 index 815c984e8a55a..0000000000000 --- a/eden/mononoke/tools/testtool/TARGETS +++ /dev/null @@ -1,37 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "testtool", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/sorted_vector_map:sorted_vector_map", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/changesets/changesets_creation:changesets_creation", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/common/topo_sort:topo_sort", - "//eden/mononoke/derived_data:bulk_derivation", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/server/context:context", - "//eden/mononoke/tests/utils:tests_utils", - ], -) diff --git a/eden/mononoke/walker/TARGETS b/eden/mononoke/walker/TARGETS deleted file mode 100644 index 3159299d04c70..0000000000000 --- a/eden/mononoke/walker/TARGETS +++ /dev/null @@ -1,92 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("scm_server_infra") - -rust_binary( - name = "walker", - srcs = glob([ - "src/**/*.rs", - "schemas/**/*.sql", - ]), - test_deps = [ - "//common/rust/shed/fbinit:fbinit-tokio", - "//eden/mononoke/mononoke_macros:mononoke_macros", - "//eden/mononoke/repo_factory:test_repo_factory", - ], - deps = [ - "fbsource//third-party/rust:ahash", - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:array-init", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:auto_impl", - "fbsource//third-party/rust:bitflags", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:clap", - "fbsource//third-party/rust:dashmap", - "fbsource//third-party/rust:derive_more", - "fbsource//third-party/rust:filetime", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:internment", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:paste", - "fbsource//third-party/rust:percent-encoding", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:slog", - "fbsource//third-party/rust:strum", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:zstd", - "//common/rust/shed/cloned:cloned", - "//common/rust/shed/facet:facet", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/hash_memo:hash_memo", - "//common/rust/shed/scuba_stub:scuba", - "//common/rust/shed/stats:stats", - "//eden/mononoke/blobrepo:blobrepo_hg", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/blobstore:blobstore", - "//eden/mononoke/blobstore:blobstore_factory", - "//eden/mononoke/blobstore:multiplexedblob", - "//eden/mononoke/blobstore:samplingblob", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/cmdlib/caching:cmdlib_caching", - "//eden/mononoke/cmdlib/mononoke_app:mononoke_app", - "//eden/mononoke/cmdlib/scrubbing:cmdlib_scrubbing", - "//eden/mononoke/cmdlib/sharding:executor_lib", - "//eden/mononoke/cmdlib/sharding_ext:sharding_ext", - "//eden/mononoke/common/bounded_traversal:bounded_traversal", - "//eden/mononoke/common/rust/sql_ext:sql_ext", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/common/sql_construct:sql_construct", - "//eden/mononoke/common/yield_stream:yield_stream", - "//eden/mononoke/derived_data:blame", - "//eden/mononoke/derived_data:changeset_info", - "//eden/mononoke/derived_data:deleted_manifest", - "//eden/mononoke/derived_data:derived_data_manager", - "//eden/mononoke/derived_data:fastlog", - "//eden/mononoke/derived_data:fsnodes", - "//eden/mononoke/derived_data:skeleton_manifest", - "//eden/mononoke/derived_data:unodes", - "//eden/mononoke/derived_data/filenodes_derivation:filenodes_derivation", - "//eden/mononoke/derived_data/mercurial_derivation:mercurial_derivation", - "//eden/mononoke/filenodes:filenodes", - "//eden/mononoke/filestore:filestore", - "//eden/mononoke/manifest:manifest", - "//eden/mononoke/mercurial:mercurial_types", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mononoke_types:mononoke_types", - "//eden/mononoke/newfilenodes:newfilenodes", - "//eden/mononoke/phases:phases", - "//eden/mononoke/repo_attributes/commit_graph/commit_graph:commit_graph", - "//eden/mononoke/repo_attributes/commit_graph/sql_commit_graph_storage:sql_commit_graph_storage", - "//eden/mononoke/repo_attributes/repo_derived_data:repo_derived_data", - "//eden/mononoke/repo_attributes/repo_identity:repo_identity", - "//eden/mononoke/repo_factory:repo_factory", - "//eden/mononoke/server/context:context", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/mononoke/wireproto_handler/TARGETS b/eden/mononoke/wireproto_handler/TARGETS deleted file mode 100644 index 39fe26400a3f1..0000000000000 --- a/eden/mononoke/wireproto_handler/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("scm_server_infra") - -rust_library( - name = "wireproto_handler", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:slog", - "//common/rust/shed/facet:facet", - "//eden/mononoke/blobrepo:repo_blobstore", - "//eden/mononoke/bonsai_hg_mapping:bonsai_hg_mapping", - "//eden/mononoke/bookmarks:bookmarks", - "//eden/mononoke/commit_rewriting/synced_commit_mapping:synced_commit_mapping", - "//eden/mononoke/common/scuba_ext:scuba_ext", - "//eden/mononoke/metaconfig:metaconfig_types", - "//eden/mononoke/mutable_counters:mutable_counters", - ], -) diff --git a/eden/scm/TARGETS b/eden/scm/TARGETS deleted file mode 100644 index 05ca9fd5f1f87..0000000000000 --- a/eden/scm/TARGETS +++ /dev/null @@ -1,254 +0,0 @@ -# Most of the Mercurial code does not use fbcode-relative includes, so autodeps cannot -# process it correctly. Disable autodeps on this file for now. Eventually we should -# fix the mercurial code to use fbcode-relative includes. -# - -load("@fbcode//eden/scm:targets.bzl", "fetch_as_eden", "gen_hgpython", "hg_binary") -load("@fbcode//target_determinator/macros:ci_hint.bzl", "ci_hint") -load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:export_files.bzl", "export_file") -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_command_alias", "buck_filegroup", "buck_sh_binary") -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") -load("@fbcode_macros//build_defs:rust_universal_binary.bzl", "rust_universal_binary") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("sapling") - -cpp_library( - # @autodeps-skip - name = "core_headers", - headers = [ - "sapling/bitmanipulation.h", - "sapling/compat.h", - ], -) - -cpp_library( - # @autodeps-skip - name = "traceprof", - srcs = ["sapling/ext/extlib/traceprofimpl.cpp"], - cpp_compiler_flags = [ - "-fno-strict-aliasing", - ], - deps = [ - "fbsource//third-party/python:python", - ], -) - -cpp_library( - name = "libbdiff", - srcs = [ - "sapling/bdiff.c", - ], - exported_deps = [":core_headers"], -) - -cpp_library( - name = "bser", - srcs = [ - "sapling/ext/extlib/pywatchman/bser.c", - ], - compiler_flags = [ - "-fno-strict-aliasing", - "-Wno-missing-field-initializers", - ], - deps = [ - "fbsource//third-party/python:python", - ], -) - -cpp_library( - name = "libmpatch", - srcs = [ - "sapling/mpatch.c", - ], - compiler_flags = [ - "-Wno-deprecated-declarations", - ], - exported_deps = [":core_headers"], -) - -python_binary( - name = "gen_version_py_bin", - srcs = ["gen_version.py"], - main_module = "eden.scm.gen_version", -) - -# Pure Python first party modules -buck_filegroup( - name = "pure-modules", - srcs = glob([ - "sapling/**/*.py", - "ghstack/**/*.py", - ]), -) - -python_library( - name = "clone", - srcs = [ - "fb/staticfiles/opt/facebook/bin/clone.py", - ], - resources = glob(["fb/staticfiles/opt/facebook/bin/**"]), -) - -buck_filegroup( - name = "etc_mercurial", - srcs = glob([ - "fb/staticfiles/etc/mercurial/**", - ]), -) - -# Similar to "hg". -# The main executable uses argv[0] to decide to run as a Python interpreter. -gen_hgpython(hg_target = "fbcode//eden/scm:hg") - -gen_hgpython( - hg_target = "fbcode//eden/scm:hg_test", - suffix = "_test", -) - -export_file( - name = "windows-manifest", - src = "exec/hgmain/manifest.xml", -) - -hg_binary( - name = "hg", - autocargo = { - "cargo_target_config": {"name": "hgmain"}, - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "commands": {"default-features": False}, - "pyblackbox": {"path": "../../saplingnative/bindings/modules/pyblackbox"}, - }, - "target": { - '\'cfg(target_os = "linux")\'': {"dependencies": { - "dirs": {"optional": True}, - "sapling-identity": {"optional": True}, - }}, - '\'cfg(target_os = "macos")\'': {"dependencies": { - "dirs": {"optional": True}, - "sapling-identity": {"optional": True}, - }}, - }, - }, - "extra_buck_dependencies": {"dependencies": [ - (None, "//common/rust/shed/fbinit:fbinit"), - ("configparser", "//eden/scm/lib/config/loader:configloader"), - ]}, - "features": { - "buildinfo": [], - "default": [], - "eden": [ - "sapling-clidispatch/eden", - "commands/eden", - ], - "fb": ["commands/fb"], - "sl_oss": [ - "sapling-clidispatch/sl_oss", - "commands/sl_oss", - ], - "with_chg": [ - "dirs", - "sapling-identity", - ], - }, - "package": { - "build": "build.rs", - "name": "hgmain", - }, - "profile": {"release": { - "debug": True, - "incremental": True, - "lto": False, - }}, - }, - "cargo_toml_dir": "exec/hgmain", - }, - extra_features = select({ - "DEFAULT": [], - "ovr_config//os:linux": [] if rust_oss.is_oss_build() else ["cas"], - }), - named_deps = select({ - "DEFAULT": {}, - "ovr_config//os:linux": {} if rust_oss.is_oss_build() else ({"cas_client": "//eden/scm/lib/cas-client/rich-client:rich-cas-client"} if fetch_as_eden() else {"cas_client": "//eden/scm/lib/cas-client/thin-client:thin-cas-client"}), - }), -) - -hg_binary( - name = "hg_test", - allow_oss_build = False, - autocargo = {"ignore_rule": True}, -) - -# Try to override target depth so //eden/scm/tests:hg_run_tests and other -# important test targets reliably pick up Python code changes despite target -# depth greater than 5. -ci_hint( - ci_deps = ["fbcode//eden/scm/lib/python-modules:python-modules"], - reason = "hg is very close to Python source files despite large target depth", - target = "hg", -) - -rust_universal_binary( - name = "hg_universal_binary", - source = ":hg", - visibility = ["PUBLIC"], -) - -cpp_library( - # @autodeps-skip - name = "chg", - srcs = [ - "contrib/chg/chg.c", - "contrib/chg/hgclient.c", - "contrib/chg/procutil.c", - "contrib/chg/util.c", - ], - headers = [ - "contrib/chg/hgclient.h", - "contrib/chg/procutil.h", - "contrib/chg/util.h", - ], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], -) - -buck_command_alias( - name = "runhg", - exe = ":hg", -) - -buck_sh_binary( - name = "scm_prompt", - main = "contrib/scm-prompt.sh", -) - -cpp_binary( - name = "whochanges", - srcs = [ - "contrib/whochanges/whochanges.c", - ], - compatible_with = [ - "ovr_config//os:linux", - ], - external_deps = [ - ("glibc", None, "rt"), - ], -) - -python_binary( - name = "update_staleness_detectors", - srcs = ["fb/update_staleness_detectors.py"], - main_module = "eden.scm.fb.update_staleness_detectors", - deps = [ - "fbsource//third-party/pypi/click:click", - "//libfb/py/asyncio:limit_concurrency", - "//libfb/py/pyre:pyre", - ], -) diff --git a/eden/scm/exec/eden_apfs_mount_helper/TARGETS b/eden/scm/exec/eden_apfs_mount_helper/TARGETS deleted file mode 100644 index 592989aa8b3ad..0000000000000 --- a/eden/scm/exec/eden_apfs_mount_helper/TARGETS +++ /dev/null @@ -1,66 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_binary( - name = "eden_apfs_mount_helper", - srcs = glob([ - "src/*.rs", - "src/facebook/*.rs", - ]), - features = [ - "fb", - ], - os_deps = [ - ( - "macos", - ["fbsource//third-party/rust:serde"], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:structopt", - ":eden_apfs", - ], -) - -rust_library( - name = "eden_apfs", - srcs = glob(["src/eden_apfs/*.rs"]), - autocargo = { - "cargo_toml_config": { - "features": { - "fb": [], - }, - "package": { - "authors": [ - "Wez Furlong", - "Mark Shroyer", - ], - "name": "eden_apfs_mount_helper", - }, - }, - }, - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - crate_root = "src/eden_apfs/eden_apfs.rs", - features = [ - "fb", - ], - test_deps = [ - "fbsource//third-party/rust:pretty_assertions", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:plist", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:sha2", - ], -) diff --git a/eden/scm/exec/fsprobe/TARGETS b/eden/scm/exec/fsprobe/TARGETS deleted file mode 100644 index 0ea6b3716d4e9..0000000000000 --- a/eden/scm/exec/fsprobe/TARGETS +++ /dev/null @@ -1,12 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("sapling") - -rust_binary( - name = "fsprobe", - srcs = glob(["src/**/*.rs"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:structopt", - ], -) diff --git a/eden/scm/exec/scm_daemon/TARGETS b/eden/scm/exec/scm_daemon/TARGETS deleted file mode 100644 index 71808bc22fdf1..0000000000000 --- a/eden/scm/exec/scm_daemon/TARGETS +++ /dev/null @@ -1,40 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_universal_binary.bzl", "rust_universal_binary") - -oncall("sapling") - -rust_binary( - name = "scm_daemon", - srcs = glob(["src/**/*.rs"]), - link_style = "static", - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap-2", - "fbsource//third-party/rust:env_logger", - "fbsource//third-party/rust:log", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:toml", - "//eden/scm/lib/commitcloudsubscriber:commitcloudsubscriber", - ], -) - -rust_universal_binary( - name = "scm_daemon_universal_binary", - source = ":scm_daemon", -) diff --git a/eden/scm/exec/scratch/TARGETS b/eden/scm/exec/scratch/TARGETS deleted file mode 100644 index 40325e046b0c2..0000000000000 --- a/eden/scm/exec/scratch/TARGETS +++ /dev/null @@ -1,60 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "mkscratch", - srcs = glob( - ["src/**/*.rs"], - exclude = ["src/main.rs"], - ), - autocargo = { - "cargo_target_config": { - "name": "mkscratch", - }, - "cargo_toml_config": { - "package": { - "authors": ["Source Control Oncall oncall+source_control@xmail.facebook.com"], - "name": "mkscratch", - }, - }, - }, - deps = [ - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:sha2", - ], -) - -rust_binary( - name = "scratch", - srcs = ["src/main.rs"], - autocargo = { - "cargo_target_config": { - "name": "mkscratch", - }, - }, - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:clap-3", - "fbsource//third-party/rust:dirs", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:toml", - ":mkscratch", - "//eden/scm/lib/identity:identity", - ], -) diff --git a/eden/scm/hgcache_size_logger/TARGETS b/eden/scm/hgcache_size_logger/TARGETS deleted file mode 100644 index d116a1091ef1f..0000000000000 --- a/eden/scm/hgcache_size_logger/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") - -oncall("sapling") - -python_binary( - # @autodeps-skip - name = "hgcache_size_logger", - srcs = [ - "hgcache_size_logger.py", - ], - main_function = "eden.scm.hgcache_size_logger.main", - deps = [ - "//libfb/py:log", - "//rfe/scubadata:scubadata_py_DEPRECATED_USE_py3_INSTEAD", - ], -) diff --git a/eden/scm/lib/async-runtime/TARGETS b/eden/scm/lib/async-runtime/TARGETS deleted file mode 100644 index 07b8b9108857e..0000000000000 --- a/eden/scm/lib/async-runtime/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "async-runtime", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "async-runtime"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-async-runtime", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [], - deps = [ - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:num_cpus", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:tokio", - ], -) diff --git a/eden/scm/lib/atomicfile/TARGETS b/eden/scm/lib/atomicfile/TARGETS deleted file mode 100644 index 68bf50a6df235..0000000000000 --- a/eden/scm/lib/atomicfile/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "atomicfile", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "atomicfile"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Atomically write a file with retries.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-atomicfile", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:tracing", - ], -) diff --git a/eden/scm/lib/auth/TARGETS b/eden/scm/lib/auth/TARGETS deleted file mode 100644 index 33442cbf15db4..0000000000000 --- a/eden/scm/lib/auth/TARGETS +++ /dev/null @@ -1,36 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "auth", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "auth"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-auth", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:once_cell", - "//eden/scm/lib/config/static:staticconfig", - ], - test_srcs = glob(["src/test_certs/*.pem"]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:indexmap", - "fbsource//third-party/rust:pem", - "fbsource//third-party/rust:simple_asn1", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:url", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/backingstore/TARGETS b/eden/scm/lib/backingstore/TARGETS deleted file mode 100644 index cd8c76fe5d6d8..0000000000000 --- a/eden/scm/lib/backingstore/TARGETS +++ /dev/null @@ -1,107 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbsource//tools/build_defs:fb_native_wrapper.bzl", "fb_native") - -oncall("sapling") - -fb_native.constraint_setting( - name = "edenfs-cas", -) - -fb_native.constraint_value( - name = "edenfs-include-cas", - constraint_setting = ":edenfs-cas", - visibility = ["PUBLIC"], -) - -cpp_library( - name = "sapling_native_backingstore", - srcs = glob(["src/**/*.cpp"]), - headers = glob(["include/**/*.h"]), - undefined_symbols = True, - deps = [ - "//folly:string", - "//folly/io:iobuf", - "//folly/logging:logging", - ], - exported_deps = [ - "fbsource//third-party/rust:cxx-core", - ":backingstore@header", - "//eden/fs/store:context", - "//folly:function", - "//folly:range", - "//folly:try", - "//folly/futures:core", - ], -) - -rust_library( - name = "backingstore", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_target_config": {"crate_type": [ - "staticlib", - "lib", - ]}, - "cargo_toml_config": { - "dependencies_override": {"dependencies": { - "sapling-constructors": {"default-features": False}, - "sapling-indexedlog": {"features": ["configurable"]}, - }}, - "features": {"fb": ["sapling-configloader/fb"]}, - "lib": {"name": "backingstore"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-backingstore", - "repository": "https://github.com/facebook/sapling", - }, - }, - }, - cpp_deps = [ - ":sapling_native_backingstore", - "//eden/fs/store:context", - ], - crate_root = "src/lib.rs", - cxx_bridge = "src/ffi.rs", - features = select({ - "DEFAULT": [], - "fbcode//eden/scm/lib/backingstore:edenfs-include-cas": select({ - "DEFAULT": [], - "ovr_config//os:linux": ["cas"], - }), - }), - # rich-cas-client should be in deps but Autocargo does not support selects - # and will ignore fields with them. Since we don't have any OSS named_deps, - # we can put the select here and let Autocargo ignore it safely, while - # still getting the dep. - named_deps = select({ - "DEFAULT": {}, - "fbcode//eden/scm/lib/backingstore:edenfs-include-cas": select({ - "DEFAULT": {}, - "ovr_config//os:linux": {"rich_cas_client": "//eden/scm/lib/cas-client/rich-client:rich-cas-client"}, - }), - }), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:arc-swap", - "fbsource//third-party/rust:cxx", - "fbsource//third-party/rust:env_logger", - "fbsource//third-party/rust:log", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:tracing-subscriber", - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/constructors:constructors", - "//eden/scm/lib/eagerepo:eagerepo", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/tracing-collector:tracing-collector", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/backingstore/benches/TARGETS b/eden/scm/lib/backingstore/benches/TARGETS deleted file mode 100644 index eef422d5fa16a..0000000000000 --- a/eden/scm/lib/backingstore/benches/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("sapling") - -rust_binary( - name = "backingstore-benches", - srcs = glob([ - "src/**/*.rs", - ]), - autocargo = {"cargo_toml_config": { - "extra_buck_dependencies": {"dependencies": ["//eden/scm/lib/config/loader:configloader"]}, - "features": {"fb": ["sapling-configloader/fb"]}, - }}, - crate_root = "src/main.rs", - metadata = { - "buck.cfg_modifiers": [ - "fbcode//eden/scm/lib/backingstore:edenfs-include-cas", - ], - }, - deps = [ - "fbsource//third-party/rust:tempfile", - "//eden/scm/lib/backingstore:backingstore", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/minibench:minibench", - "//eden/scm/lib/procinfo:procinfo", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/blackbox/TARGETS b/eden/scm/lib/blackbox/TARGETS deleted file mode 100644 index 46ac3074010b3..0000000000000 --- a/eden/scm/lib/blackbox/TARGETS +++ /dev/null @@ -1,39 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "blackbox", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "bench": [{ - "harness": False, - "name": "blackbox", - }], - "extra_buck_dependencies": {"dev-dependencies": ["//eden/scm/lib/minibench:minibench"]}, - "lib": {"name": "blackbox"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-blackbox", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = ["fbsource//third-party/rust:tempfile"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_cbor", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:serde_json", - "//eden/scm/lib/blackbox/serde_alt:serde_alt", - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/indexedlog:indexedlog", - ], -) diff --git a/eden/scm/lib/blackbox/serde_alt/TARGETS b/eden/scm/lib/blackbox/serde_alt/TARGETS deleted file mode 100644 index 36ca0c28a6482..0000000000000 --- a/eden/scm/lib/blackbox/serde_alt/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "serde_alt", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "serde_alt"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-serde_alt", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - proc_macro = True, - rustc_flags = [ - "--crate-type", - "proc-macro", - ], -) diff --git a/eden/scm/lib/cas-client/TARGETS b/eden/scm/lib/cas-client/TARGETS deleted file mode 100644 index 75d289eb3c791..0000000000000 --- a/eden/scm/lib/cas-client/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cas-client", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cas-client"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-cas-client", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:auto_impl", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/factory:factory", - ], -) diff --git a/eden/scm/lib/cas-client/re-cas-common/TARGETS b/eden/scm/lib/cas-client/re-cas-common/TARGETS deleted file mode 100644 index 832721aa428ac..0000000000000 --- a/eden/scm/lib/cas-client/re-cas-common/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "re-cas-common", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "re-cas-common"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-re-cas-common", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/cas-client:cas-client", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/cas-client/rich-client/TARGETS b/eden/scm/lib/cas-client/rich-client/TARGETS deleted file mode 100644 index 27c9add95d593..0000000000000 --- a/eden/scm/lib/cas-client/rich-client/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "rich-cas-client", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "rich-cas-client"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-rich-cas-client", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:tracing", - "//common/rust/shed/fbinit:fbinit", - "//eden/scm/lib/cas-client:cas-client", - "//eden/scm/lib/cas-client/re-cas-common:re-cas-common", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/util/factory:factory", - "//remote_execution/client_lib/wrappers/rust:re_client_lib", - ], -) diff --git a/eden/scm/lib/cas-client/thin-client/TARGETS b/eden/scm/lib/cas-client/thin-client/TARGETS deleted file mode 100644 index 65d3f0df7b4bd..0000000000000 --- a/eden/scm/lib/cas-client/thin-client/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "thin-cas-client", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "thin-cas-client"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-thin-cas-client", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:tracing", - "//common/rust/shed/fbinit:fbinit", - "//eden/scm/lib/cas-client:cas-client", - "//eden/scm/lib/cas-client/re-cas-common:re-cas-common", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/util/factory:factory", - "//remote_execution/client_lib/wrappers/rust:external_re_client_lib", - ], -) diff --git a/eden/scm/lib/cats/TARGETS b/eden/scm/lib/cats/TARGETS deleted file mode 100644 index 863531f142e98..0000000000000 --- a/eden/scm/lib/cats/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cats", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cats"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-cats", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:indexmap", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/checkout/TARGETS b/eden/scm/lib/checkout/TARGETS deleted file mode 100644 index e9fc0bb5e9ed8..0000000000000 --- a/eden/scm/lib/checkout/TARGETS +++ /dev/null @@ -1,86 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "checkout", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "sapling-edenfs-client": {"optional": True}, - "sapling-hg-metrics": {"optional": True}, - "sapling-manifest": {"features": ["for-tests"]}, - "toml": {"optional": True}, - }, - "dev-dependencies": {"sapling-manifest-tree": {"features": ["for-tests"]}}, - }, - "features": {"eden": [ - "sapling-edenfs-client", - "sapling-hg-metrics", - "toml", - "sapling-workingcopy/eden", - ]}, - "lib": {"name": "checkout"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-checkout", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["eden"], - os_deps = [ - ( - "windows", - [ - "fbsource//third-party/rust:fs-err", - ], - ), - ], - test_deps = [ - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:walkdir", - "//eden/scm/lib/manifest-tree:manifest-tree", - "//eden/scm/lib/types:types", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:crossbeam", - "fbsource//third-party/rust:fail", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:toml", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/context:context", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/edenfs-client:edenfs-client", - "//eden/scm/lib/hg-metrics:hg-metrics", - "//eden/scm/lib/hook:hook", - "//eden/scm/lib/io/term/logger:termlogger", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/manifest-tree:manifest-tree", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/spawn-ext:spawn-ext", - "//eden/scm/lib/status:status", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/treestate:treestate", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/util/atexit:atexit", - "//eden/scm/lib/vfs:vfs", - "//eden/scm/lib/workingcopy:workingcopy", - "//watchman/rust/watchman_client:watchman_client", - ], -) diff --git a/eden/scm/lib/clidispatch/TARGETS b/eden/scm/lib/clidispatch/TARGETS deleted file mode 100644 index a2fea510c7038..0000000000000 --- a/eden/scm/lib/clidispatch/TARGETS +++ /dev/null @@ -1,59 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "clidispatch", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": { - "sapling-indexedlog": {"features": ["configurable"]}, - "sapling-repo": {"features": ["wdir"]}, - "sapling-thrift-types": {"optional": True}, - }}, - "features": { - "eden": [ - "sapling-workingcopy/eden", - "sapling-thrift-types", - ], - "sl_oss": ["sapling-identity/sl_oss"], - }, - "lib": {"name": "clidispatch"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-clidispatch", - "repository": "https://github.com/facebook/sapling", - }, - }}, - features = [ - "eden", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//common/rust/shed/hostname:hostname", - "//eden/scm/lib/blackbox:blackbox", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/context:context", - "//eden/scm/lib/doctor/network:network-doctor", - "//eden/scm/lib/gitcompat:gitcompat", - "//eden/scm/lib/hgtime:hgtime", - "//eden/scm/lib/hook:hook", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/lib/io:io", - "//eden/scm/lib/io/term/logger:termlogger", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/sampling:sampling", - "//eden/scm/lib/thrift-types:thrift-types", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/util/hgplain:hgplain", - "//eden/scm/lib/workingcopy:workingcopy", - ], -) diff --git a/eden/scm/lib/clientinfo-async/TARGETS b/eden/scm/lib/clientinfo-async/TARGETS deleted file mode 100644 index bfc7e5aacd18c..0000000000000 --- a/eden/scm/lib/clientinfo-async/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "clientinfo_async", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "clientinfo_async"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-clientinfo_async", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:tokio", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/scm/lib/clientinfo/TARGETS b/eden/scm/lib/clientinfo/TARGETS deleted file mode 100644 index 9044a9ad879eb..0000000000000 --- a/eden/scm/lib/clientinfo/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("sapling") - -rust_library( - name = "clientinfo", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "clientinfo"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-clientinfo", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tracing", - "//common/rust/shed/hostname:hostname", - ] + ([] if rust_oss.is_oss_build() else [ - "//devx_www/cross_env_session_id:cross_env_session_id", - ]), -) diff --git a/eden/scm/lib/clientinfo/facebook/TARGETS b/eden/scm/lib/clientinfo/facebook/TARGETS deleted file mode 100644 index 9c403cbfeeb79..0000000000000 --- a/eden/scm/lib/clientinfo/facebook/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "clientinfo-cpp", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "clientinfo-cpp"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "clientinfo-cpp", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - cxx_bridge = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:cxx", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) diff --git a/eden/scm/lib/cliparser/TARGETS b/eden/scm/lib/cliparser/TARGETS deleted file mode 100644 index 4d295ca7b08ac..0000000000000 --- a/eden/scm/lib/cliparser/TARGETS +++ /dev/null @@ -1,39 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "cliparser", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"cpython": { - "features": ["python3-sys"], - "git": None, - "rev": None, - }}}, - "features": { - "default": [], - "python": ["cpython"], - }, - "lib": {"name": "cliparser"}, - "package": { - "authors": ["Facebook Source Control Team "], - "name": "sapling-cliparser", - }, - }}, - features = [ - "python", - ], - # A test inside this target is using #[should_panic], setting the backtrace - # to false here, otherwise the test binary will try to extract the backtrace - # and the test will fail with leak sanatizer. - test_env = {"RUST_BACKTRACE": "0"}, - test_labels = ["tpx-rust-no-backtrace-workaround"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:indexmap", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:shlex", - "fbsource//third-party/rust:thiserror", - ], -) diff --git a/eden/scm/lib/clone/TARGETS b/eden/scm/lib/clone/TARGETS deleted file mode 100644 index 98aff1587cb98..0000000000000 --- a/eden/scm/lib/clone/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "clone", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "clone"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-clone", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/checkout:checkout", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/context:context", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/commands/TARGETS b/eden/scm/lib/commands/TARGETS deleted file mode 100644 index 7cecbeb15287e..0000000000000 --- a/eden/scm/lib/commands/TARGETS +++ /dev/null @@ -1,141 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "commands", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": { - "anyhow": {"features": ["backtrace"]}, - "pytracing": {"default-features": False}, - "sapling-constructors": {"features": ["git"]}, - "sapling-repo": {"features": ["wdir"]}, - }}, - "extra_buck_dependencies": {"dependencies": [ - "//eden/scm/saplingnative/bindings/modules/pycheckout:pycheckout", - "//eden/scm/saplingnative/bindings/modules/pyworkingcopyclient:pyworkingcopyclient", - "//eden/scm/saplingnative/bindings/modules/pyworkingcopy:pyworkingcopy", - "//eden/scm/lib/revisionstore:revisionstore", - ]}, - "features": { - "default": [], - "eden": [ - "sapling-clidispatch/eden", - "pycheckout/eden", - "pyworkingcopyclient/eden", - "pyworkingcopy/eden", - "cmdgoto/eden", - "cmddebugwait/eden", - ], - "fb": [ - "cmdpy/fb", - "sapling-configloader/fb", - "sapling-identity/fb", - "cmdversion/fb", - "cmddebugdumpinternalconfig/fb", - "cmddebugrefreshconfig/fb", - ], - "sl_oss": ["sapling-configloader/sl_oss"], - }, - "lib": {"name": "commands"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "commands", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = [ - "eden", - "fb", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:ctrlc", - "fbsource//third-party/rust:flate2", - "fbsource//third-party/rust:hostname", - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:tracing-subscriber", - "fbsource//third-party/rust:zstd", - "//eden/scm/lib/blackbox:blackbox", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdpy:cmdpy", - "//eden/scm/lib/commandserver:commandserver", - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/constructors:constructors", - "//eden/scm/lib/hg-http:hg-http", - "//eden/scm/lib/hg-metrics:hg-metrics", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/metrics:metrics", - "//eden/scm/lib/metrics/render:metrics-render", - "//eden/scm/lib/mincode:mincode", - "//eden/scm/lib/procinfo:procinfo", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/progress/render:progress-render", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/repo/url:repourl", - "//eden/scm/lib/runlog:runlog", - "//eden/scm/lib/sampling:sampling", - "//eden/scm/lib/tracing-collector:tracing-collector", - "//eden/scm/lib/tracing-reload:tracing-reload", - "//eden/scm/lib/tracing-sampler:tracing-sampler", - "//eden/scm/lib/util/atexit:atexit", - "//eden/scm/lib/util/hgplain:hgplain", - "//eden/scm/lib/util/nodeipc:nodeipc", - "//eden/scm/lib/util/testutil:testutil", - "//eden/scm/lib/version:rust_version", - "//eden/scm/saplingnative/bindings/modules/pytracing:pytracing", - # see update_modules.sh - # [[[cog - # import cog, glob, os - # for path in sorted(glob.glob('commands/cmd*/TARGETS')): - # name = os.path.basename(os.path.dirname(path)) - # cog.outl(f'"//eden/scm/lib/commands/commands/{name}:{name}",') - # for path in sorted(glob.glob('debugcommands/cmd*/TARGETS')): - # name = os.path.basename(os.path.dirname(path)) - # cog.outl(f'"//eden/scm/lib/commands/debugcommands/{name}:{name}",') - # ]]] - "//eden/scm/lib/commands/commands/cmdclone:cmdclone", - "//eden/scm/lib/commands/commands/cmdconfig:cmdconfig", - "//eden/scm/lib/commands/commands/cmdconfigfile:cmdconfigfile", - "//eden/scm/lib/commands/commands/cmdgoto:cmdgoto", - "//eden/scm/lib/commands/commands/cmdroot:cmdroot", - "//eden/scm/lib/commands/commands/cmdstatus:cmdstatus", - "//eden/scm/lib/commands/commands/cmdversion:cmdversion", - "//eden/scm/lib/commands/commands/cmdwhereami:cmdwhereami", - "//eden/scm/lib/commands/debugcommands/cmddebugargs:cmddebugargs", - "//eden/scm/lib/commands/debugcommands/cmddebugcas:cmddebugcas", - "//eden/scm/lib/commands/debugcommands/cmddebugconfigtree:cmddebugconfigtree", - "//eden/scm/lib/commands/debugcommands/cmddebugcurrentexe:cmddebugcurrentexe", - "//eden/scm/lib/commands/debugcommands/cmddebugdumpindexedlog:cmddebugdumpindexedlog", - "//eden/scm/lib/commands/debugcommands/cmddebugdumpinternalconfig:cmddebugdumpinternalconfig", - "//eden/scm/lib/commands/debugcommands/cmddebugfsync:cmddebugfsync", - "//eden/scm/lib/commands/debugcommands/cmddebughttp:cmddebughttp", - "//eden/scm/lib/commands/debugcommands/cmddebuglfsreceive:cmddebuglfsreceive", - "//eden/scm/lib/commands/debugcommands/cmddebuglfssend:cmddebuglfssend", - "//eden/scm/lib/commands/debugcommands/cmddebugmergestate:cmddebugmergestate", - "//eden/scm/lib/commands/debugcommands/cmddebugmetrics:cmddebugmetrics", - "//eden/scm/lib/commands/debugcommands/cmddebugnetworkdoctor:cmddebugnetworkdoctor", - "//eden/scm/lib/commands/debugcommands/cmddebugpython:cmddebugpython", - "//eden/scm/lib/commands/debugcommands/cmddebugracyoutput:cmddebugracyoutput", - "//eden/scm/lib/commands/debugcommands/cmddebugrefreshconfig:cmddebugrefreshconfig", - "//eden/scm/lib/commands/debugcommands/cmddebugrevsets:cmddebugrevsets", - "//eden/scm/lib/commands/debugcommands/cmddebugrunlog:cmddebugrunlog", - "//eden/scm/lib/commands/debugcommands/cmddebugscmstore:cmddebugscmstore", - "//eden/scm/lib/commands/debugcommands/cmddebugscmstorereplay:cmddebugscmstorereplay", - "//eden/scm/lib/commands/debugcommands/cmddebugsegmentgraph:cmddebugsegmentgraph", - "//eden/scm/lib/commands/debugcommands/cmddebugstore:cmddebugstore", - "//eden/scm/lib/commands/debugcommands/cmddebugstructuredprogress:cmddebugstructuredprogress", - "//eden/scm/lib/commands/debugcommands/cmddebugtestcommand:cmddebugtestcommand", - "//eden/scm/lib/commands/debugcommands/cmddebugtop:cmddebugtop", - "//eden/scm/lib/commands/debugcommands/cmddebugwait:cmddebugwait", - # [[[end]]] - ], -) diff --git a/eden/scm/lib/commands/cmdpy/TARGETS b/eden/scm/lib/commands/cmdpy/TARGETS deleted file mode 100644 index 7e8155871756b..0000000000000 --- a/eden/scm/lib/commands/cmdpy/TARGETS +++ /dev/null @@ -1,51 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "cmdpy", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "bindings": { - "default-features": False, - }, - "cpython": { - "features": ["python3-sys"], - "git": None, - "rev": None, - }, - "python3-sys": { - "git": None, - "rev": None, - }, - }, - }, - "features": { - "default": [], - "fb": [], - }, - }, - }, - crate_root = "src/lib.rs", - features = [ - "fb", - ], - include_python_sys = True, - deps = [ - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commandserver:commandserver", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/context:context", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/util/nodeipc:nodeipc", - "//eden/scm/saplingnative/bindings:bindings", - "//eden/scm/saplingnative/bindings/modules/pycontext:pycontext", - "//eden/scm/saplingnative/bindings/modules/pyio:pyio", - "//eden/scm/saplingnative/bindings/modules/pymodules:pymodules", - ], -) diff --git a/eden/scm/lib/commands/cmdutil/TARGETS b/eden/scm/lib/commands/cmdutil/TARGETS deleted file mode 100644 index 35a9316940a25..0000000000000 --- a/eden/scm/lib/commands/cmdutil/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmdutil", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmdutil"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmdutil", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/config/set:configset", - "//eden/scm/lib/formatter:formatter", - "//eden/scm/lib/io/term/style:termstyle", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/util/hgplain:hgplain", - ], -) diff --git a/eden/scm/lib/commands/commands/cmdclone/TARGETS b/eden/scm/lib/commands/commands/cmdclone/TARGETS deleted file mode 100644 index 5117428584fb7..0000000000000 --- a/eden/scm/lib/commands/commands/cmdclone/TARGETS +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmdclone", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmdclone"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmdclone", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:fail", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:url", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/clone:clone", - "//eden/scm/lib/commands/cmdpy:cmdpy", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/eagerepo:eagerepo", - "//eden/scm/lib/exchange:exchange", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/migration:migration", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/repo/url:repourl", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/util/hgplain:hgplain", - ], -) diff --git a/eden/scm/lib/commands/commands/cmdconfig/TARGETS b/eden/scm/lib/commands/commands/cmdconfig/TARGETS deleted file mode 100644 index cad2c4b8952aa..0000000000000 --- a/eden/scm/lib/commands/commands/cmdconfig/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmdconfig", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmdconfig"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmdconfig", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:serde", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/formatter:formatter", - "//eden/scm/lib/minibytes:minibytes", - ], -) diff --git a/eden/scm/lib/commands/commands/cmdconfigfile/TARGETS b/eden/scm/lib/commands/commands/cmdconfigfile/TARGETS deleted file mode 100644 index b2f18d391bc65..0000000000000 --- a/eden/scm/lib/commands/commands/cmdconfigfile/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmdconfigfile", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmdconfigfile"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmdconfigfile", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/identity:identity", - ], -) diff --git a/eden/scm/lib/commands/commands/cmdgoto/TARGETS b/eden/scm/lib/commands/commands/cmdgoto/TARGETS deleted file mode 100644 index 0a41bef2b6da7..0000000000000 --- a/eden/scm/lib/commands/commands/cmdgoto/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmdgoto", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"sapling-repo": {"features": ["wdir"]}}}, - "features": { - "default": [], - "eden": ["sapling-checkout/eden"], - }, - "lib": {"name": "cmdgoto"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmdgoto", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/checkout:checkout", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/util:util", - "//eden/scm/lib/workingcopy:workingcopy", - "//eden/scm/lib/workingcopy/repostate:repostate", - ], -) diff --git a/eden/scm/lib/commands/commands/cmdroot/TARGETS b/eden/scm/lib/commands/commands/cmdroot/TARGETS deleted file mode 100644 index 88092514b44cc..0000000000000 --- a/eden/scm/lib/commands/commands/cmdroot/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmdroot", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmdroot"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmdroot", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/commands/commands/cmdstatus/TARGETS b/eden/scm/lib/commands/commands/cmdstatus/TARGETS deleted file mode 100644 index d5301fa636621..0000000000000 --- a/eden/scm/lib/commands/commands/cmdstatus/TARGETS +++ /dev/null @@ -1,35 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmdstatus", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmdstatus"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmdstatus", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/formatter:formatter", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/status:status", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/util/hgplain:hgplain", - "//eden/scm/lib/workingcopy:workingcopy", - ], -) diff --git a/eden/scm/lib/commands/commands/cmdversion/TARGETS b/eden/scm/lib/commands/commands/cmdversion/TARGETS deleted file mode 100644 index 31959481a65e8..0000000000000 --- a/eden/scm/lib/commands/commands/cmdversion/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmdversion", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "features": { - "default": [], - "fb": [], - }, - "lib": {"name": "cmdversion"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmdversion", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["fb"], - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/version:rust_version", - ], -) diff --git a/eden/scm/lib/commands/commands/cmdwhereami/TARGETS b/eden/scm/lib/commands/commands/cmdwhereami/TARGETS deleted file mode 100644 index 302bdf3d37fc6..0000000000000 --- a/eden/scm/lib/commands/commands/cmdwhereami/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmdwhereami", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmdwhereami"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmdwhereami", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/treestate:treestate", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugargs/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugargs/TARGETS deleted file mode 100644 index 6631c241abcc8..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugargs/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugargs", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugargs"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugargs", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugcas/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugcas/TARGETS deleted file mode 100644 index 528cf73c7c43c..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugcas/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugcas", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugcas"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugcas", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:futures", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/cas-client:cas-client", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/workingcopy:workingcopy", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugconfigtree/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugconfigtree/TARGETS deleted file mode 100644 index 062368f0bb374..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugconfigtree/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugconfigtree", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugconfigtree"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugconfigtree", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/commands/cmdutil:cmdutil", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugcurrentexe/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugcurrentexe/TARGETS deleted file mode 100644 index 009a7a13c0031..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugcurrentexe/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugcurrentexe", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugcurrentexe"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugcurrentexe", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugdumpindexedlog/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugdumpindexedlog/TARGETS deleted file mode 100644 index c93d0e6911229..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugdumpindexedlog/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugdumpindexedlog", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugdumpindexedlog"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugdumpindexedlog", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/indexedlog:indexedlog", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugdumpinternalconfig/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugdumpinternalconfig/TARGETS deleted file mode 100644 index 09d23cfbbbf37..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugdumpinternalconfig/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("sapling") - -rust_library( - name = "cmddebugdumpinternalconfig", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "features": { - "default": [], - "fb": ["sapling-configloader/fb"], - }, - "lib": {"name": "cmddebugdumpinternalconfig"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugdumpinternalconfig", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["fb"], - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - ] + ([] if rust_oss.is_oss_build() else [ - "//eden/scm/lib/config/loader:configloader", - ]), -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugfsync/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugfsync/TARGETS deleted file mode 100644 index 1088443e58fb7..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugfsync/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugfsync", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugfsync"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugfsync", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/fsyncglob:fsyncglob", - "//eden/scm/lib/repo:repo", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebughttp/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebughttp/TARGETS deleted file mode 100644 index d86c1efa1ec5a..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebughttp/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebughttp", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebughttp"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebughttp", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/repo:repo", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebuglfsreceive/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebuglfsreceive/TARGETS deleted file mode 100644 index a068b2c599200..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebuglfsreceive/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebuglfsreceive", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebuglfsreceive"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebuglfsreceive", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/revisionstore:revisionstore", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebuglfssend/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebuglfssend/TARGETS deleted file mode 100644 index a93960b5d06fb..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebuglfssend/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebuglfssend", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebuglfssend"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebuglfssend", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:sha2", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/revisionstore:revisionstore", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugmergestate/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugmergestate/TARGETS deleted file mode 100644 index 0e1afa4064f6c..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugmergestate/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugmergestate", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugmergestate"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugmergestate", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/workingcopy:workingcopy", - "//eden/scm/lib/workingcopy/repostate:repostate", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugmetrics/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugmetrics/TARGETS deleted file mode 100644 index 81c5226aa83fc..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugmetrics/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugmetrics", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugmetrics"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugmetrics", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/hg-metrics:hg-metrics", - "//eden/scm/lib/repo:repo", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugnetworkdoctor/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugnetworkdoctor/TARGETS deleted file mode 100644 index ea993b29d35d1..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugnetworkdoctor/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugnetworkdoctor", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugnetworkdoctor"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugnetworkdoctor", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/doctor/network:network-doctor", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugpython/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugpython/TARGETS deleted file mode 100644 index 23b4e2b57eeeb..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugpython/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugpython", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugpython"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugpython", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugracyoutput/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugracyoutput/TARGETS deleted file mode 100644 index dd4c191d73ca5..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugracyoutput/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugracyoutput", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugracyoutput"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugracyoutput", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:rand", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/progress/model:progress-model", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugrefreshconfig/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugrefreshconfig/TARGETS deleted file mode 100644 index 2ad7236a31ad9..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugrefreshconfig/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("sapling") - -rust_library( - name = "cmddebugrefreshconfig", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "features": { - "default": [], - "fb": ["sapling-configloader/fb"], - }, - "lib": {"name": "cmddebugrefreshconfig"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugrefreshconfig", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["fb"], - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - ] + ([] if rust_oss.is_oss_build() else [ - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/repo/repo-minimal-info:repo-minimal-info", - ]), -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugrevsets/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugrevsets/TARGETS deleted file mode 100644 index 47a7a9be4d1db..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugrevsets/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugrevsets", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugrevsets"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugrevsets", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/workingcopy:workingcopy", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugrunlog/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugrunlog/TARGETS deleted file mode 100644 index 7c8d545c1eaec..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugrunlog/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugrunlog", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugrunlog"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugrunlog", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:serde_json", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/runlog:runlog", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugscmstore/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugscmstore/TARGETS deleted file mode 100644 index 4f5df90cfb9b8..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugscmstore/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugscmstore", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugscmstore"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugscmstore", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:serde", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/revisionstore:revisionstore", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugscmstorereplay/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugscmstorereplay/TARGETS deleted file mode 100644 index 1512216f2c044..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugscmstorereplay/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugscmstorereplay", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugscmstorereplay"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugscmstorereplay", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/revisionstore:revisionstore", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugsegmentgraph/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugsegmentgraph/TARGETS deleted file mode 100644 index 5c5ae811dc781..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugsegmentgraph/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugsegmentgraph", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugsegmentgraph"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugsegmentgraph", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/repo:repo", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugstore/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugstore/TARGETS deleted file mode 100644 index 273557b21bcf8..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugstore/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugstore", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugstore"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugstore", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/revisionstore:revisionstore", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugstructuredprogress/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugstructuredprogress/TARGETS deleted file mode 100644 index f5f5c0be1747a..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugstructuredprogress/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugstructuredprogress", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugstructuredprogress"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugstructuredprogress", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/progress/model:progress-model", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugtestcommand/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugtestcommand/TARGETS deleted file mode 100644 index dee1317961ff7..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugtestcommand/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugtestcommand", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugtestcommand"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugtestcommand", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugtop/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugtop/TARGETS deleted file mode 100644 index e355731cc0d7c..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugtop/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugtop", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "cmddebugtop"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugtop", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:comfy-table", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/debugtop:debugtop", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/runlog:runlog", - ], -) diff --git a/eden/scm/lib/commands/debugcommands/cmddebugwait/TARGETS b/eden/scm/lib/commands/debugcommands/cmddebugwait/TARGETS deleted file mode 100644 index 57e7170b615eb..0000000000000 --- a/eden/scm/lib/commands/debugcommands/cmddebugwait/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "cmddebugwait", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "extra_buck_dependencies": {"dependencies": []}, - "features": { - "default": [], - "eden": [ - "sapling-edenfs-client", - "sapling-workingcopy/eden", - ], - }, - "lib": {"name": "cmddebugwait"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "cmddebugwait", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["eden"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/commands/cmdutil:cmdutil", - "//eden/scm/lib/edenfs-client:edenfs-client", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/treestate:treestate", - "//eden/scm/lib/workingcopy:workingcopy", - ], -) diff --git a/eden/scm/lib/commandserver/TARGETS b/eden/scm/lib/commandserver/TARGETS deleted file mode 100644 index 5f4140aae7ef0..0000000000000 --- a/eden/scm/lib/commandserver/TARGETS +++ /dev/null @@ -1,55 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "commandserver", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "commandserver"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-commandserver", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "windows", - [ - "//eden/scm/lib/util/atexit:atexit", - "//eden/scm/lib/util/procutil:procutil", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:dirs", - "fbsource//third-party/rust:fn-error-context", - "fbsource//third-party/rust:fs2", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/spawn-ext:spawn-ext", - "//eden/scm/lib/util/nodeipc:nodeipc", - "//eden/scm/lib/util/udsipc:udsipc", - "//eden/scm/lib/version:rust_version", - ], -) diff --git a/eden/scm/lib/commitcloudsubscriber/TARGETS b/eden/scm/lib/commitcloudsubscriber/TARGETS deleted file mode 100644 index 2c806b2aeba19..0000000000000 --- a/eden/scm/lib/commitcloudsubscriber/TARGETS +++ /dev/null @@ -1,39 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "commitcloudsubscriber", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "commitcloudsubscriber"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": " Cross platform client for subscribing to Commit Cloud eventsource (http server-sent events)\n The workflow is the following:\n * define 'subscription' as a unique [repo_name, workspace] pair\n * read set of 'subscribers', defined as [repo_name, workspace, repo_root]\n * runs a Commit Cloud eventsource listener in a separate thread for every 'subscription'\n (and a set of 'subscribers' (repo_roots))\n * triggers `hg cloud sync` command on notifications in all 'subscribers' (repo_roots)\n for a given 'subscription'\n * the library also contains a module to find OAuth token,\n this logic should be in sync with `hg cloud auth` command.\n", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-commitcloudsubscriber", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = ["fbsource//third-party/rust:tempfile"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:filetime", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:log", - "fbsource//third-party/rust:mime", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:reqwest", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/hostcaps:hostcaps", - "//eden/scm/lib/config/set:configset", - "//eden/scm/lib/identity:identity", - ], -) diff --git a/eden/scm/lib/commits/TARGETS b/eden/scm/lib/commits/TARGETS deleted file mode 100644 index 22f1657375350..0000000000000 --- a/eden/scm/lib/commits/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "commits", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": { - "sapling-dag": {"features": ["indexedlog-backend"]}, - "sapling-minibytes": {"features": ["frombytes"]}, - }}, - "lib": {"name": "commits"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-commits", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/commits/trait:commits-trait", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/revlogindex:revlogindex", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/streams:streams", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/factory:factory", - "//eden/scm/lib/util/format-util:format-util", - "//eden/scm/lib/zstore:zstore", - ], -) diff --git a/eden/scm/lib/commits/git/TARGETS b/eden/scm/lib/commits/git/TARGETS deleted file mode 100644 index 350ca02d47a56..0000000000000 --- a/eden/scm/lib/commits/git/TARGETS +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "commits-git", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "commits-git"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-commits-git", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:paste", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/commits/trait:commits-trait", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/gitdag:gitdag", - "//eden/scm/lib/gitcompat:gitcompat", - "//eden/scm/lib/metalog:metalog", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/pathmatcher/types:pathmatcher-types", - "//eden/scm/lib/refencode:refencode", - "//eden/scm/lib/spawn-ext:spawn-ext", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/factory:factory", - ], -) diff --git a/eden/scm/lib/commits/trait/TARGETS b/eden/scm/lib/commits/trait/TARGETS deleted file mode 100644 index dc74882c06855..0000000000000 --- a/eden/scm/lib/commits/trait/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "commits-trait", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "commits-trait"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-commits-trait", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:serde", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/metalog:metalog", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/format-util:format-util", - ], -) diff --git a/eden/scm/lib/config/hgrc-parser/TARGETS b/eden/scm/lib/config/hgrc-parser/TARGETS deleted file mode 100644 index b5b9bcd303fee..0000000000000 --- a/eden/scm/lib/config/hgrc-parser/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "hgrc-parser", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "hgrc-parser"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-hgrc-parser", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [], -) diff --git a/eden/scm/lib/config/loader/TARGETS b/eden/scm/lib/config/loader/TARGETS deleted file mode 100644 index bbcc294c92e2e..0000000000000 --- a/eden/scm/lib/config/loader/TARGETS +++ /dev/null @@ -1,110 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs/lib:rust_oss.bzl", "rust_oss") - -oncall("sapling") - -rust_library( - name = "configloader", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_target_config": {"crate_type": [ - "staticlib", - "lib", - ]}, - "cargo_toml_config": { - "bench": [{ - "harness": False, - "name": "bench", - }], - "dependencies_override": {"dependencies": {"sapling-version": {"path": "../../version"}}}, - "extra_buck_dependencies": {"dev-dependencies": ["//eden/scm/lib/minibench:minibench"]}, - "features": { - "default": [], - "fb": [ - "sha2", - "sapling-types", - "zstd", - "sapling-identity/fb", - "filetime", - "sapling-hgtime", - "sapling-http-client", - "regex", - "serde_json", - "serde", - "serde_urlencoded", - "sha2", - ], - "sl_oss": [], - }, - "lib": {"name": "configloader"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-configloader", - "repository": "https://github.com/facebook/sapling", - }, - }, - }, - crate_root = "src/lib.rs", - features = [ - "fb", - ], - test_deps = [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:tempfile", - "//eden/scm/lib/util/testutil:testutil", - ] + ([] if rust_oss.is_oss_build() else [ - "fbsource//third-party/rust:tempfile", - ]), - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/config/set:configset", - "//eden/scm/lib/config/static:staticconfig", - "//eden/scm/lib/config/union:unionconfig", - "//eden/scm/lib/gitcompat:gitcompat", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/repo/repo-minimal-info:repo-minimal-info", - "//eden/scm/lib/repo/url:repourl", - "//eden/scm/lib/util/hgplain:hgplain", - ] + ([] if rust_oss.is_oss_build() else [ - "//devx_www/cross_env_session_id:cross_env_session_id", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:dirs", - "fbsource//third-party/rust:faccess", - "fbsource//third-party/rust:filetime", - "fbsource//third-party/rust:hostname", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:serde_urlencoded", - "fbsource//third-party/rust:sha2", - "fbsource//third-party/rust:url", - "fbsource//third-party/rust:zstd", - "//common/rust/fbwhoami:fbwhoami", - "//common/rust/shed/hostcaps:hostcaps", - "//eden/scm/lib/hgtime:hgtime", - "//eden/scm/lib/http-client:http-client", - "//eden/scm/lib/io:io", - "//eden/scm/lib/spawn-ext:spawn-ext", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/version:rust_version", - ]), -) - -rust_binary( - name = "bench", - srcs = ["benches/bench.rs"], - autocargo = {"ignore_rule": True}, - deps = [ - "fbsource//third-party/rust:tempfile", - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/minibench:minibench", - "//eden/scm/lib/repo/repo-minimal-info:repo-minimal-info", - ], -) diff --git a/eden/scm/lib/config/model/TARGETS b/eden/scm/lib/config/model/TARGETS deleted file mode 100644 index 716f8ac986757..0000000000000 --- a/eden/scm/lib/config/model/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "configmodel", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "configmodel"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Configuration types used by Sapling.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-configmodel", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:auto_impl", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:twox-hash", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/config/set/TARGETS b/eden/scm/lib/config/set/TARGETS deleted file mode 100644 index ca5e0344a83ed..0000000000000 --- a/eden/scm/lib/config/set/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "configset", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "configset"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-configset", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:indexmap", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/hgrc-parser:hgrc-parser", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/config/static/TARGETS b/eden/scm/lib/config/static/TARGETS deleted file mode 100644 index e387359b64188..0000000000000 --- a/eden/scm/lib/config/static/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "staticconfig", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "staticconfig"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-staticconfig", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:phf", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/config/static/macros:staticconfig_macros", - ], -) diff --git a/eden/scm/lib/config/static/macros/TARGETS b/eden/scm/lib/config/static/macros/TARGETS deleted file mode 100644 index d848cff0fbd6b..0000000000000 --- a/eden/scm/lib/config/static/macros/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "staticconfig_macros", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "staticconfig_macros"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-staticconfig_macros", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - proc_macro = True, - rustc_flags = [ - "--crate-type", - "proc-macro", - ], - deps = [ - "fbsource//third-party/rust:indexmap", - "//eden/scm/lib/config/hgrc-parser:hgrc-parser", - ], -) diff --git a/eden/scm/lib/config/union/TARGETS b/eden/scm/lib/config/union/TARGETS deleted file mode 100644 index 4ad9505c15f93..0000000000000 --- a/eden/scm/lib/config/union/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "unionconfig", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "unionconfig"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-unionconfig", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "//eden/scm/lib/config/static:staticconfig", - ], - deps = [ - "fbsource//third-party/rust:indexmap", - "//eden/scm/lib/config/model:configmodel", - ], -) diff --git a/eden/scm/lib/constructors/TARGETS b/eden/scm/lib/constructors/TARGETS deleted file mode 100644 index a4de346b15e92..0000000000000 --- a/eden/scm/lib/constructors/TARGETS +++ /dev/null @@ -1,36 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "constructors", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "features": { - "default": ["git"], - "git": [ - "sapling-gitstore", - "sapling-commits-git", - ], - }, - "lib": {"name": "constructors"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-constructors", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["git"], - deps = [ - "fbsource//third-party/rust:once_cell", - "//eden/scm/lib/commits:commits", - "//eden/scm/lib/commits/git:commits-git", - "//eden/scm/lib/eagerepo:eagerepo", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/gitstore:gitstore", - "//eden/scm/lib/manifest-tree:manifest-tree", - ], -) diff --git a/eden/scm/lib/context/TARGETS b/eden/scm/lib/context/TARGETS deleted file mode 100644 index a6a3bfdec4de6..0000000000000 --- a/eden/scm/lib/context/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "context", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "context"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-context", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/io:io", - "//eden/scm/lib/io/term/logger:termlogger", - ], -) diff --git a/eden/scm/lib/control-point/TARGETS b/eden/scm/lib/control-point/TARGETS deleted file mode 100644 index 87b4f0151d5cf..0000000000000 --- a/eden/scm/lib/control-point/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "control-point", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "control-point"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-control-point", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/copytrace/TARGETS b/eden/scm/lib/copytrace/TARGETS deleted file mode 100644 index 2ce5211a51f29..0000000000000 --- a/eden/scm/lib/copytrace/TARGETS +++ /dev/null @@ -1,48 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "copytrace", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": { - "dependencies": {"sapling-manifest": {"features": ["for-tests"]}}, - "dev-dependencies": {"sapling-manifest-tree": {"features": ["for-tests"]}}, - }, - "lib": {"name": "copytrace"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-copytrace", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tracing-test", - "//eden/scm/lib/manifest-tree:manifest-tree", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:lru-cache", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/hg-metrics:hg-metrics", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/manifest-tree:manifest-tree", - "//eden/scm/lib/pathhistory:pathhistory", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - "//eden/scm/lib/xdiff:xdiff", - ], -) diff --git a/eden/scm/lib/cpython-async/TARGETS b/eden/scm/lib/cpython-async/TARGETS deleted file mode 100644 index 64611667d6eed..0000000000000 --- a/eden/scm/lib/cpython-async/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "cpython-async", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"cpython": { - "features": ["python3-sys"], - "git": None, - "rev": None, - }}}, - "lib": {"name": "cpython-async"}, - "package": {"name": "sapling-cpython-async"}, - }}, - crate_root = "src/lib.rs", - test_deps = ["fbsource//third-party/rust:tokio"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/cpython-ext:cpython-ext", - ], -) diff --git a/eden/scm/lib/cpython-ext/TARGETS b/eden/scm/lib/cpython-ext/TARGETS deleted file mode 100644 index 3be17e97dbef3..0000000000000 --- a/eden/scm/lib/cpython-ext/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "cpython-ext", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": { - "cpython": { - "features": ["python3-sys"], - "git": None, - "rev": None, - }, - "python3-sys": { - "git": None, - "rev": None, - }, - }}, - "lib": {"name": "cpython-ext"}, - "package": {"name": "sapling-cpython-ext"}, - }}, - crate_root = "src/lib.rs", - include_python_sys = True, - test_deps = [ - "fbsource//third-party/rust:serde_bytes", - "fbsource//third-party/rust:serde_cbor", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:thiserror", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/dag/TARGETS b/eden/scm/lib/dag/TARGETS deleted file mode 100644 index 51f805b2bd07e..0000000000000 --- a/eden/scm/lib/dag/TARGETS +++ /dev/null @@ -1,129 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "dag", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": { - "sapling-dag-types": { - "default-features": False, - "features": [], - }, - "sapling-minibytes": { - "default-features": False, - "features": [], - }, - }}, - "extra_buck_dependencies": {"dev-dependencies": [ - "fbsource//third-party/rust:fs2", - "fbsource//third-party/rust:tokio", - "//eden/scm/lib/dag/dag-types:dag-types", - "//eden/scm/lib/indexedlog:indexedlog", - ]}, - "features": { - "default": [ - "indexedlog-backend", - "render", - ], - "indexedlog-backend": [ - "fs2", - "sapling-indexedlog", - "tempfile", - ], - "render": ["sapling-renderdag"], - }, - "lib": {"name": "dag"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "An implementation of a DAG used for source control.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-dag", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = [ - "indexedlog-backend", - "render", - ], - test_deps = [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:tokio", - "//eden/scm/lib/dev-logger:dev-logger", - "//eden/scm/lib/renderdag:renderdag", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bitflags", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:fail", - "fbsource//third-party/rust:fs2", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:indexmap", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/dag/dag-types:dag-types", - "//eden/scm/lib/drawdag:drawdag", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/lib/mincode:mincode", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/nonblocking:nonblocking", - "//eden/scm/lib/renderdag:renderdag", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) - -# The "-lite" variant does not dependent on indexedlog. It is suitable to be -# used on the server side which does not have any local-disk accesses. -# Note: unittests is disabled since it requires indexedlog. -rust_library( - name = "dag-lite", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "lib": {"name": "dag"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-dag", - "repository": "https://github.com/facebook/sapling", - }, - }, - "ignore_rule": True, - }, - crate = "dag", - crate_root = "src/lib.rs", - features = [ - "render", - ], - unittests = False, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bitflags", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:fail", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:indexmap", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/dag/dag-types:dag-types", - "//eden/scm/lib/drawdag:drawdag", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/nonblocking:nonblocking", - "//eden/scm/lib/renderdag:renderdag", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) diff --git a/eden/scm/lib/dag/benches/TARGETS b/eden/scm/lib/dag/benches/TARGETS deleted file mode 100644 index cf0877a03bd74..0000000000000 --- a/eden/scm/lib/dag/benches/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("sapling") - -rust_binary( - name = "dag-benches", - srcs = glob([ - "src/**/*.rs", - ]), - autocargo = { - "cargo_toml_config": { - "package": { - "license": "GPL-2.0-only", - }, - }, - }, - crate_root = "src/main.rs", - deps = [ - "fbsource//third-party/rust:serde_cbor", - "fbsource//third-party/rust:tempfile", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/bindag:bindag", - "//eden/scm/lib/dev-logger:dev-logger", - "//eden/scm/lib/mincode:mincode", - "//eden/scm/lib/minibench:minibench", - "//eden/scm/lib/nonblocking:nonblocking", - ], -) diff --git a/eden/scm/lib/dag/bindag/TARGETS b/eden/scm/lib/dag/bindag/TARGETS deleted file mode 100644 index 88202919eaa9b..0000000000000 --- a/eden/scm/lib/dag/bindag/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "bindag", - srcs = glob([ - "src/**/*.rs", - "src/*.bindag", - ]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "bindag"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-bindag", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:tempfile", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/drawdag:drawdag", - "//eden/scm/lib/nonblocking:nonblocking", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) diff --git a/eden/scm/lib/dag/dag-types/TARGETS b/eden/scm/lib/dag/dag-types/TARGETS deleted file mode 100644 index 7c6fe15bf9771..0000000000000 --- a/eden/scm/lib/dag/dag-types/TARGETS +++ /dev/null @@ -1,45 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "dag-types", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": { - "abomonation": {"features": []}, - "sapling-minibytes": { - "default-features": False, - "features": [], - }, - }}, - "features": { - "for-tests": ["quickcheck"], - "serialize-abomonation": ["abomonation"], - }, - "lib": {"name": "dag-types"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "A subset of types used by sapling-dag", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-dag-types", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = [ - "for-tests", - "serialize-abomonation", - ], - test_deps = [ - "fbsource//third-party/rust:quickcheck", - ], - deps = [ - "fbsource//third-party/rust:abomonation", - "fbsource//third-party/rust:abomonation_derive", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:serde", - "//eden/scm/lib/minibytes:minibytes", - ], -) diff --git a/eden/scm/lib/dag/fuzz/TARGETS b/eden/scm/lib/dag/fuzz/TARGETS deleted file mode 100644 index 79ad6efb1e292..0000000000000 --- a/eden/scm/lib/dag/fuzz/TARGETS +++ /dev/null @@ -1,165 +0,0 @@ -load( - "@fbsource//xplat/security/lionhead:defs.bzl", - "EXTERNAL_USERS", - "Metadata", - "Severity", -) -load("//security/lionhead/harnesses:defs.bzl", "rust_libfuzzer_harness") - -oncall("sapling") - -# Run this with: buck run -c rust.fuzzing=true :gca -# See D13660487. -rust_libfuzzer_harness( - name = "gca", - srcs = [ - "fuzz_targets/gca.rs", - "fuzz_targets/tests.rs", - ], - crate_root = "fuzz_targets/gca.rs", - metadata = Metadata( - exposure = EXTERNAL_USERS, - project = "oncall_dynamic_analysis", - severity_denial_of_service = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - severity_service_takeover = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - ), - deps = [ - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/bindag:bindag", - ], - external_deps = [ - ("rust-crates-io", None, "lazy_static"), - ], -) - -rust_libfuzzer_harness( - name = "gca_small", - srcs = [ - "fuzz_targets/gca_small.rs", - "fuzz_targets/tests.rs", - ], - crate_root = "fuzz_targets/gca_small.rs", - metadata = Metadata( - exposure = EXTERNAL_USERS, - project = "oncall_dynamic_analysis", - severity_denial_of_service = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - severity_service_takeover = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - ), - deps = [ - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/bindag:bindag", - ], - external_deps = [ - ("rust-crates-io", None, "lazy_static"), - ], -) - -rust_libfuzzer_harness( - name = "gca_octopus", - srcs = [ - "fuzz_targets/gca_octopus.rs", - "fuzz_targets/tests.rs", - ], - crate_root = "fuzz_targets/gca_octopus.rs", - metadata = Metadata( - exposure = EXTERNAL_USERS, - project = "oncall_dynamic_analysis", - severity_denial_of_service = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - severity_service_takeover = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - ), - deps = [ - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/bindag:bindag", - ], - external_deps = [ - ("rust-crates-io", None, "lazy_static"), - ], -) - -rust_libfuzzer_harness( - name = "range", - srcs = [ - "fuzz_targets/range.rs", - "fuzz_targets/tests.rs", - ], - crate_root = "fuzz_targets/range.rs", - metadata = Metadata( - exposure = EXTERNAL_USERS, - project = "oncall_dynamic_analysis", - severity_denial_of_service = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - severity_service_takeover = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - ), - deps = [ - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/bindag:bindag", - ], - external_deps = [ - ("rust-crates-io", None, "lazy_static"), - ], -) - -rust_libfuzzer_harness( - name = "range_medium", - srcs = [ - "fuzz_targets/range_medium.rs", - "fuzz_targets/tests.rs", - ], - crate_root = "fuzz_targets/range_medium.rs", - metadata = Metadata( - exposure = EXTERNAL_USERS, - project = "oncall_dynamic_analysis", - severity_denial_of_service = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - severity_service_takeover = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - ), - deps = [ - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/bindag:bindag", - ], - external_deps = [ - ("rust-crates-io", None, "lazy_static"), - ], -) - -rust_libfuzzer_harness( - name = "range_small", - srcs = [ - "fuzz_targets/range_small.rs", - "fuzz_targets/tests.rs", - ], - crate_root = "fuzz_targets/range_small.rs", - metadata = Metadata( - exposure = EXTERNAL_USERS, - project = "oncall_dynamic_analysis", - severity_denial_of_service = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - severity_service_takeover = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - ), - deps = [ - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/bindag:bindag", - ], - external_deps = [ - ("rust-crates-io", None, "lazy_static"), - ], -) - -rust_libfuzzer_harness( - name = "range_octopus", - srcs = [ - "fuzz_targets/range_octopus.rs", - "fuzz_targets/tests.rs", - ], - crate_root = "fuzz_targets/range_octopus.rs", - metadata = Metadata( - exposure = EXTERNAL_USERS, - project = "oncall_dynamic_analysis", - severity_denial_of_service = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - severity_service_takeover = Severity.FILE_SECURITY_TASK, # missing severity, using default TODO: check and apply appropriate severity - ), - deps = [ - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/dag/bindag:bindag", - ], - external_deps = [ - ("rust-crates-io", None, "lazy_static"), - ], -) diff --git a/eden/scm/lib/dag/gitdag/TARGETS b/eden/scm/lib/dag/gitdag/TARGETS deleted file mode 100644 index 1fbec9d45f503..0000000000000 --- a/eden/scm/lib/dag/gitdag/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "gitdag", - srcs = glob([ - "src/**/*.rs", - ]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "gitdag"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-gitdag", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:git2", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/nonblocking:nonblocking", - ], -) diff --git a/eden/scm/lib/debugtop/TARGETS b/eden/scm/lib/debugtop/TARGETS deleted file mode 100644 index d17ec8597b858..0000000000000 --- a/eden/scm/lib/debugtop/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "debugtop", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "debugtop"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-debugtop", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:chrono", - "//eden/scm/lib/runlog:runlog", - ], -) diff --git a/eden/scm/lib/dev-logger/TARGETS b/eden/scm/lib/dev-logger/TARGETS deleted file mode 100644 index 71389136cb7d8..0000000000000 --- a/eden/scm/lib/dev-logger/TARGETS +++ /dev/null @@ -1,37 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "dev-logger", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "dev-logger"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Print or examine tracing output in unit tests.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-dev-logger", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:ctor", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:tracing-subscriber", - ], -) - -rust_binary( - name = "test", - srcs = ["examples/test.rs"], - autocargo = {"ignore_rule": True}, - unittests = False, - deps = [ - "fbsource//third-party/rust:tracing", - ":dev-logger", - ], -) diff --git a/eden/scm/lib/doctor/network/TARGETS b/eden/scm/lib/doctor/network/TARGETS deleted file mode 100644 index 01941bf244e89..0000000000000 --- a/eden/scm/lib/doctor/network/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "network-doctor", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "network-doctor"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-network-doctor", - "repository": "https://github.com/facebook/sapling", - }, - }}, - test_deps = ["fbsource//third-party/rust:tempfile"], - deps = [ - "fbsource//third-party/rust:curl", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:url", - "//eden/scm/lib/auth:auth", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/hg-http:hg-http", - "//eden/scm/lib/http-client:http-client", - ], -) diff --git a/eden/scm/lib/drawdag/TARGETS b/eden/scm/lib/drawdag/TARGETS deleted file mode 100644 index 69a07889b93c5..0000000000000 --- a/eden/scm/lib/drawdag/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "drawdag", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "drawdag"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Parse an ASCII DAG into graph edges.", - "homepage": "https://sapling-scm.com/docs/dev/internals/drawdag", - "license": "MIT", - "name": "sapling-drawdag", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - # A test inside this target is using #[should_panic], setting the backtrace - # to false here, otherwise the test binary will try to extract the backtrace - # and the test will fail with leak sanatizer. - test_env = {"RUST_BACKTRACE": "0"}, - test_labels = ["tpx-rust-no-backtrace-workaround"], -) diff --git a/eden/scm/lib/eagerepo/TARGETS b/eden/scm/lib/eagerepo/TARGETS deleted file mode 100644 index de2fe82da0531..0000000000000 --- a/eden/scm/lib/eagerepo/TARGETS +++ /dev/null @@ -1,51 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "eagerepo", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "eagerepo"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-eagerepo", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:tokio", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:fail", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/cas-client:cas-client", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/edenapi/trait:edenapi_trait", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/manifest-tree:manifest-tree", - "//eden/scm/lib/metalog:metalog", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/mutationstore:mutationstore", - "//eden/scm/lib/nonblocking:nonblocking", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/repo/url:repourl", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/util/factory:factory", - "//eden/scm/lib/util/format-util:format-util", - "//eden/scm/lib/zstore:zstore", - ], -) diff --git a/eden/scm/lib/edenapi/TARGETS b/eden/scm/lib/edenapi/TARGETS deleted file mode 100644 index 8a680d54710ca..0000000000000 --- a/eden/scm/lib/edenapi/TARGETS +++ /dev/null @@ -1,50 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "edenapi", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"sapling-version": {"path": "../version"}}}, - "lib": {"name": "edenapi"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-edenapi", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_cbor", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:url", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/cats:cats", - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/clientinfo-async:clientinfo_async", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/edenapi/trait:edenapi_trait", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/hg-http:hg-http", - "//eden/scm/lib/http-client:http-client", - "//eden/scm/lib/metrics:metrics", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/pprint:pprint", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/repo/url:repourl", - "//eden/scm/lib/types:types", - "//eden/scm/lib/version:rust_version", - ], -) diff --git a/eden/scm/lib/edenapi/ext/TARGETS b/eden/scm/lib/edenapi/ext/TARGETS deleted file mode 100644 index 0f3e5cfa04e66..0000000000000 --- a/eden/scm/lib/edenapi/ext/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "edenapi_ext", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "edenapi_ext"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-edenapi_ext", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:blake2", - "fbsource//third-party/rust:crossbeam", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:tokio", - "//common/rust/shed/cloned:cloned", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/types:types", - "//eden/scm/lib/vfs:vfs", - ], -) diff --git a/eden/scm/lib/edenapi/trait/TARGETS b/eden/scm/lib/edenapi/trait/TARGETS deleted file mode 100644 index 488bbb0dd2488..0000000000000 --- a/eden/scm/lib/edenapi/trait/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "edenapi_trait", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "edenapi_trait"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-edenapi_trait", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:serde_cbor", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:url", - "//eden/scm/lib/auth:auth", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/http-client:http-client", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/edenapi/types/TARGETS b/eden/scm/lib/edenapi/types/TARGETS deleted file mode 100644 index 2079bf4423bb0..0000000000000 --- a/eden/scm/lib/edenapi/types/TARGETS +++ /dev/null @@ -1,90 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("sapling") - -rust_library( - name = "edenapi_types", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"sapling-dag-types": {"features": ["for-tests"]}}}, - "lib": {"name": "edenapi_types"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-edenapi_types", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["for-tests"], - named_deps = { - "blake3-constants": "//blake3:blake3-constants-rust-nothrift", - }, - test_deps = [ - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:quickcheck_macros", - "fbsource//third-party/rust:serde_json", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - "//eden/scm/lib/insta_ext:insta_ext", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:blake3", - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:paste", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_bytes", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:thiserror", - ":type_macros", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - "//eden/scm/lib/dag/dag-types:dag-types", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/revisionstore:revisionstore_types", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/format-util:format-util", - ], -) - -rust_library( - name = "type_macros", - srcs = glob(["proc_macros/*.rs"]), - autocargo = { - "cargo_toml_config": { - "lib": {"name": "type_macros"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-type_macros", - "repository": "https://github.com/facebook/sapling", - }, - }, - "cargo_toml_dir": "proc_macros", - }, - crate_root = "proc_macros/lib.rs", - proc_macro = True, - deps = [ - "fbsource//third-party/rust:proc-macro2", - "fbsource//third-party/rust:quote", - "fbsource//third-party/rust:syn1", - ], -) - -rust_unittest( - name = "macro_test", - srcs = ["test/basic_test.rs"], - crate_root = "test/basic_test.rs", - deps = [ - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - ":edenapi_types", - ":type_macros", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - ], -) diff --git a/eden/scm/lib/edenfs-client/TARGETS b/eden/scm/lib/edenfs-client/TARGETS deleted file mode 100644 index 57c560955c311..0000000000000 --- a/eden/scm/lib/edenfs-client/TARGETS +++ /dev/null @@ -1,36 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "edenfs-client", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {}, - "features": {"fb": ["sapling-identity/fb"]}, - "lib": {"name": "edenfs-client"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-edenfs-client", - "repository": "https://github.com/facebook/sapling", - }, - }}, - features = ["fb"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:toml", - "fbsource//third-party/rust:tracing", - "//common/rust/shed/fbthrift_ext:socket", - "//common/rust/shed/tokio-uds-compat:tokio-uds-compat", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/hg-metrics:hg-metrics", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/thrift-types:thrift-types", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/edenfs_ffi/TARGETS b/eden/scm/lib/edenfs_ffi/TARGETS deleted file mode 100644 index d4627cc978376..0000000000000 --- a/eden/scm/lib/edenfs_ffi/TARGETS +++ /dev/null @@ -1,72 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("source_control") - -# Due to some tools changing '-' to '_' when building, -# this library/crate is named using an '_' so that it can link successfully. -rust_library( - name = "edenfs_ffi", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_target_config": {"crate_type": [ - "staticlib", - "lib", - ]}, - "cargo_toml_config": { - "dependencies_override": {"build-dependencies": {"cxx-build": {"optional": False}}}, - "extra_buck_dependencies": {"dependencies": [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/stats:stats", - ]}, - "features": {"ods": [ - "fbinit", - "stats", - ]}, - "lib": {"name": "edenfs_ffi"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-edenfs_ffi", - "repository": "https://github.com/facebook/sapling", - }, - }, - }, - cpp_deps = [":edenfs_ffi-wrapper"], - crate_root = "src/lib.rs", - cxx_bridge = "src/lib.rs", - features = [ - "fb", - "ods", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:cxx", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:tracing", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/stats:stats", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/sparse:sparse", - "//eden/scm/lib/types:types", - ], -) - -cpp_library( - name = "edenfs_ffi-wrapper", - srcs = ["src/ffi.cpp"], - headers = ["include/ffi.h"], - preferred_linkage = "static", - undefined_symbols = True, - exported_deps = [ - "fbsource//third-party/rust:cxx-core", - ":edenfs_ffi@header", # @manual - "//folly/futures:core", - ], -) diff --git a/eden/scm/lib/encoding/TARGETS b/eden/scm/lib/encoding/TARGETS deleted file mode 100644 index 93c36d87b984d..0000000000000 --- a/eden/scm/lib/encoding/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "encoding", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"target": {"'cfg(windows)'": {"dependencies": { - "local-encoding": {"version": "*"}, - "winapi": {"version": "0.3"}, - }}}}, - "lib": {"name": "encoding"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-encoding", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "windows", - [ - "fbsource//third-party/rust:winapi", - ], - ), - ], - test_os_deps = [ - ( - "windows", - [ - "fbsource//third-party/rust:local-encoding", - ], - ), - ], - deps = [ - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/exchange/TARGETS b/eden/scm/lib/exchange/TARGETS deleted file mode 100644 index 69fde6f9828ea..0000000000000 --- a/eden/scm/lib/exchange/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "exchange", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "exchange"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-exchange", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/commits:commits", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/metalog:metalog", - "//eden/scm/lib/refencode:refencode", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/formatter/TARGETS b/eden/scm/lib/formatter/TARGETS deleted file mode 100644 index 715ff9a1a2a5e..0000000000000 --- a/eden/scm/lib/formatter/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "formatter", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "formatter"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-formatter", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:thiserror", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/io/term/style:termstyle", - ], -) diff --git a/eden/scm/lib/fsinfo/TARGETS b/eden/scm/lib/fsinfo/TARGETS deleted file mode 100644 index b56fd0bcffd4d..0000000000000 --- a/eden/scm/lib/fsinfo/TARGETS +++ /dev/null @@ -1,67 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "fsinfo", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"target": {"'cfg(windows)'": {"dependencies": {"winapi": { - "features": [ - "fileapi", - "handleapi", - "ioapiset", - "minwindef", - "winbase", - "winerror", - "winioctl", - ], - "version": "0.3", - }}}}}, - "lib": {"name": "fsinfo"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-fsinfo", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "windows", - [ - "fbsource//third-party/rust:winapi", - "//eden/scm/lib/identity:identity", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - ], -) - -rust_binary( - name = "fstype", - srcs = ["examples/fstype.rs"], - autocargo = {"ignore_rule": True}, - unittests = False, - deps = [ - "fbsource//third-party/rust:anyhow", - ":fsinfo", - ], -) diff --git a/eden/scm/lib/fsyncglob/TARGETS b/eden/scm/lib/fsyncglob/TARGETS deleted file mode 100644 index 5ea1850105dc0..0000000000000 --- a/eden/scm/lib/fsyncglob/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "fsyncglob", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "fsyncglob"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-fsyncglob", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:glob", - "fbsource//third-party/rust:tracing", - ], -) diff --git a/eden/scm/lib/gitcompat/TARGETS b/eden/scm/lib/gitcompat/TARGETS deleted file mode 100644 index 5f179fe9baaba..0000000000000 --- a/eden/scm/lib/gitcompat/TARGETS +++ /dev/null @@ -1,34 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "gitcompat", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "gitcompat"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-gitcompat", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:filetime", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/pathmatcher/types:pathmatcher-types", - "//eden/scm/lib/spawn-ext:spawn-ext", - "//eden/scm/lib/treestate:treestate", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/gitstore/TARGETS b/eden/scm/lib/gitstore/TARGETS deleted file mode 100644 index 32c9a022eb637..0000000000000 --- a/eden/scm/lib/gitstore/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "gitstore", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "bench": [{ - "harness": False, - "name": "read_obj", - }], - "lib": {"name": "gitstore"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-gitstore", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:git2", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/gitcompat:gitcompat", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/spawn-ext:spawn-ext", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/factory:factory", - ], -) diff --git a/eden/scm/lib/hg-http/TARGETS b/eden/scm/lib/hg-http/TARGETS deleted file mode 100644 index d7d40e985cc78..0000000000000 --- a/eden/scm/lib/hg-http/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "hg-http", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "hg-http"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-hg-http", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:url", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/auth:auth", - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/hg-metrics:hg-metrics", - "//eden/scm/lib/http-client:http-client", - "//eden/scm/lib/progress/model:progress-model", - ], -) diff --git a/eden/scm/lib/hg-metrics/TARGETS b/eden/scm/lib/hg-metrics/TARGETS deleted file mode 100644 index 613cc6e1772ea..0000000000000 --- a/eden/scm/lib/hg-metrics/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "hg-metrics", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "hg-metrics"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-hg-metrics", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - ], -) diff --git a/eden/scm/lib/hgtime/TARGETS b/eden/scm/lib/hgtime/TARGETS deleted file mode 100644 index 422adfd73b40b..0000000000000 --- a/eden/scm/lib/hgtime/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "hgtime", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "features": { - "default": ["serde"], - "serde": ["dep:serde"], - }, - "lib": {"name": "hgtime"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Parse time from strings.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-hgtime", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["serde"], - test_deps = [ - "fbsource//third-party/rust:serde_cbor", - ], - deps = [ - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:humantime", - "fbsource//third-party/rust:serde", - ], -) diff --git a/eden/scm/lib/hook/TARGETS b/eden/scm/lib/hook/TARGETS deleted file mode 100644 index e06a25026f0ef..0000000000000 --- a/eden/scm/lib/hook/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "hook", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "hook"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-hook", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/io:io", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/spawn-ext:spawn-ext", - ], -) diff --git a/eden/scm/lib/http-client/TARGETS b/eden/scm/lib/http-client/TARGETS deleted file mode 100644 index 0e7dc729c4d7b..0000000000000 --- a/eden/scm/lib/http-client/TARGETS +++ /dev/null @@ -1,67 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "http-client", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "http-client"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-http-client", - "repository": "https://github.com/facebook/sapling", - }, - }}, - test_deps = [ - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:crossbeam", - "fbsource//third-party/rust:mockito", - "fbsource//third-party/rust:zstd", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-compression", - "fbsource//third-party/rust:auto_impl", - "fbsource//third-party/rust:curl", - "fbsource//third-party/rust:curl-sys", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:lru-cache", - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:openssl", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:paste", - "fbsource//third-party/rust:pin-project", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_cbor", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-util", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:url", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/clientinfo:clientinfo", - ], -) - -rust_binary( - name = "http-cli", - srcs = ["src/bin/cli.rs"], - crate_root = "src/bin/cli.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:env_logger", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:structopt", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:url", - "//eden/scm/lib/http-client:http-client", - ], -) diff --git a/eden/scm/lib/identity/TARGETS b/eden/scm/lib/identity/TARGETS deleted file mode 100644 index 9e13d6fc87044..0000000000000 --- a/eden/scm/lib/identity/TARGETS +++ /dev/null @@ -1,34 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "identity", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "features": { - "default": [], - "fb": [], - "sl_oss": [], - }, - "lib": {"name": "identity"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-identity", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:dirs", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:tracing", - ], -) diff --git a/eden/scm/lib/indexedlog/TARGETS b/eden/scm/lib/indexedlog/TARGETS deleted file mode 100644 index 9ef98c5c98f61..0000000000000 --- a/eden/scm/lib/indexedlog/TARGETS +++ /dev/null @@ -1,116 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbcode_macros//build_defs:rust_unittest.bzl", "rust_unittest") - -oncall("sapling") - -rust_library( - name = "indexedlog", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "bench": [ - { - "harness": False, - "name": "index", - }, - { - "harness": False, - "name": "misc", - }, - { - "harness": False, - "name": "log", - }, - ], - "extra_buck_dependencies": {"dev-dependencies": [ - "fbsource//third-party/rust:rand_chacha", - "//eden/scm/lib/minibench:minibench", - ]}, - "features": { - "configurable": ["sapling-configmodel"], - "sigbus-handler": [], - }, - "lib": {"name": "indexedlog"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Append-only on-disk storage with integrity checks and radix tree indexing.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-indexedlog", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = [ - "configurable", - "sigbus-handler", - ], - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:libc", - ], - ), - ( - "windows", - [ - "fbsource//third-party/rust:winapi", - ], - ), - ], - test_deps = [ - "fbsource//third-party/rust:quickcheck", - "//eden/scm/lib/dev-logger:dev-logger", - ], - # A test inside this target is using #[should_panic], setting the backtrace - # to false here, otherwise the test binary will try to extract the backtrace - # and the test will fail with leak sanatizer. - test_env = {"RUST_BACKTRACE": "0"}, - test_labels = ["tpx-rust-no-backtrace-workaround"], - deps = [ - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:fs2", - "fbsource//third-party/rust:memmap2", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:twox-hash", - "//eden/scm/lib/atomicfile:atomicfile", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) - -rust_unittest( - name = "low_fileno_limit_test", - srcs = ["tests/low_fileno_limit.rs"], - crate_root = "tests/low_fileno_limit.rs", - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:tempfile", - ":indexedlog", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:tempfile", - ":indexedlog", - ], - ), - ], -) diff --git a/eden/scm/lib/insta_ext/TARGETS b/eden/scm/lib/insta_ext/TARGETS deleted file mode 100644 index 3a6d2431c6009..0000000000000 --- a/eden/scm/lib/insta_ext/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "insta_ext", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "insta_ext"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-insta_ext", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:insta", - ], -) diff --git a/eden/scm/lib/io/TARGETS b/eden/scm/lib/io/TARGETS deleted file mode 100644 index 142ab19cfce4e..0000000000000 --- a/eden/scm/lib/io/TARGETS +++ /dev/null @@ -1,44 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "io", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "io"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-io", - "repository": "https://github.com/facebook/sapling", - }, - }}, - os_deps = [ - ( - "macos", - [ - "fbsource//third-party/rust:termios", - ], - ), - ( - "linux", - [ - "fbsource//third-party/rust:termios", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:pipe", - "fbsource//third-party/rust:terminal_size", - "fbsource//third-party/rust:termwiz", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/spawn-ext:spawn-ext", - "//eden/scm/lib/third-party/streampager:streampager", - "//eden/scm/lib/util/hgplain:hgplain", - "//eden/scm/lib/util/time-interval:time-interval", - ], -) diff --git a/eden/scm/lib/io/term/logger/TARGETS b/eden/scm/lib/io/term/logger/TARGETS deleted file mode 100644 index a37a9798d56d9..0000000000000 --- a/eden/scm/lib/io/term/logger/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "termlogger", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "termlogger"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-termlogger", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/io:io", - "//eden/scm/lib/lazystr:lazystr", - ], -) diff --git a/eden/scm/lib/io/term/style/TARGETS b/eden/scm/lib/io/term/style/TARGETS deleted file mode 100644 index 5989594384a81..0000000000000 --- a/eden/scm/lib/io/term/style/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "termstyle", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "termstyle"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-termstyle", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:termwiz", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/io:io", - "//eden/scm/lib/util/hgplain:hgplain", - ], -) diff --git a/eden/scm/lib/journal/TARGETS b/eden/scm/lib/journal/TARGETS deleted file mode 100644 index 148a04bbb38fa..0000000000000 --- a/eden/scm/lib/journal/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "journal", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "journal"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-journal", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "//eden/scm/lib/hgtime:hgtime", - "//eden/scm/lib/repolock:repolock", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/lazystr/TARGETS b/eden/scm/lib/lazystr/TARGETS deleted file mode 100644 index 38d63faeafece..0000000000000 --- a/eden/scm/lib/lazystr/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "lazystr", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "lazystr"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Thin abstraction for maybe lazily generated str.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-lazystr", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", -) diff --git a/eden/scm/lib/linelog/TARGETS b/eden/scm/lib/linelog/TARGETS deleted file mode 100644 index c6f03c7b09aea..0000000000000 --- a/eden/scm/lib/linelog/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "linelog", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"im": { - "default-features": False, - "features": [], - }}}, - "lib": {"name": "linelog"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-linelog", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:rand_chacha", - ], - deps = [ - "fbsource//third-party/rust:im", - ], -) diff --git a/eden/scm/lib/lz4-pyframe/TARGETS b/eden/scm/lib/lz4-pyframe/TARGETS deleted file mode 100644 index 3cb0d023cc6f2..0000000000000 --- a/eden/scm/lib/lz4-pyframe/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "lz4-pyframe", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "bench": [{ - "harness": False, - "name": "bench", - }], - "lib": {"name": "lz4-pyframe"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-lz4-pyframe", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = ["fbsource//third-party/rust:quickcheck"], - deps = [ - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:lz4-sys", - "fbsource//third-party/rust:thiserror", - ], -) diff --git a/eden/scm/lib/manifest-tree/TARGETS b/eden/scm/lib/manifest-tree/TARGETS deleted file mode 100644 index 25593ed54b565..0000000000000 --- a/eden/scm/lib/manifest-tree/TARGETS +++ /dev/null @@ -1,76 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "manifest-tree", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "bench": [{ - "harness": False, - "name": "bench", - "required-features": ["for-tests"], - }], - "dependencies_override": {"dev-dependencies": { - "sapling-manifest": { - "default-features": False, - "features": ["for-tests"], - }, - "sapling-types": { - "default-features": False, - "features": ["for-tests"], - }, - }}, - "extra_buck_dependencies": { - "dependencies": [ - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand", - ], - "dev-dependencies": [ - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rand_chacha", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/minibench:minibench", - "//eden/scm/lib/types:types", - ], - }, - "features": { - "default": [], - "for-tests": [ - "quickcheck", - "rand", - ], - }, - "lib": {"name": "manifest-tree"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-manifest-tree", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["for-tests"], - test_deps = [ - "fbsource//third-party/rust:quickcheck", - "//eden/scm/lib/dev-logger:dev-logger", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:crossbeam", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:threadpool", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/factory:factory", - "//eden/scm/lib/util/format-util:format-util", - ], -) diff --git a/eden/scm/lib/manifest/TARGETS b/eden/scm/lib/manifest/TARGETS deleted file mode 100644 index 98bc3074353b1..0000000000000 --- a/eden/scm/lib/manifest/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "manifest", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dev-dependencies": {"sapling-types": { - "default-features": False, - "features": ["for-tests"], - }}}, - "extra_buck_dependencies": {"dev-dependencies": [ - "fbsource//third-party/rust:quickcheck", - "//eden/scm/lib/types:types", - ]}, - "features": { - "default": [], - "for-tests": ["quickcheck"], - }, - "lib": {"name": "manifest"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-manifest", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["for-tests"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:quickcheck", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/metalog/TARGETS b/eden/scm/lib/metalog/TARGETS deleted file mode 100644 index 5e7d00a627ad5..0000000000000 --- a/eden/scm/lib/metalog/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "metalog", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "metalog"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-metalog", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand_chacha", - "fbsource//third-party/rust:rand_core", - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/hgtime:hgtime", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/lib/mincode:mincode", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/refencode:refencode", - "//eden/scm/lib/types:types", - "//eden/scm/lib/zstore:zstore", - ], -) diff --git a/eden/scm/lib/metrics/TARGETS b/eden/scm/lib/metrics/TARGETS deleted file mode 100644 index 4dfe9785ba2d7..0000000000000 --- a/eden/scm/lib/metrics/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "metrics", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "metrics"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-metrics", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:once_cell", - ], -) diff --git a/eden/scm/lib/metrics/render/TARGETS b/eden/scm/lib/metrics/render/TARGETS deleted file mode 100644 index 6ddb1618d0240..0000000000000 --- a/eden/scm/lib/metrics/render/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "metrics-render", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "metrics-render"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-metrics-render", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/metrics:metrics", - "//eden/scm/lib/progress/model:progress-model", - ], -) diff --git a/eden/scm/lib/migration/TARGETS b/eden/scm/lib/migration/TARGETS deleted file mode 100644 index dbe1db2fdbee4..0000000000000 --- a/eden/scm/lib/migration/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "migration", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "migration"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-migration", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:thiserror", - "//eden/scm/lib/config/model:configmodel", - ], -) diff --git a/eden/scm/lib/mincode/TARGETS b/eden/scm/lib/mincode/TARGETS deleted file mode 100644 index fd229608dff49..0000000000000 --- a/eden/scm/lib/mincode/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "mincode", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "mincode"}, - "package": { - "authors": [ - "David Tolnay ", - "Meta Source Control Team ", - ], - "description": "Bincode-like serialization with VLQ encoded integers.", - "homepage": "https://sapling-scm.com/", - "include": [ - "Cargo.toml", - "src/**/*.rs", - ], - "license": "MIT", - "name": "sapling-mincode", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = ["fbsource//third-party/rust:quickcheck"], - deps = [ - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:serde", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) diff --git a/eden/scm/lib/minibench/TARGETS b/eden/scm/lib/minibench/TARGETS deleted file mode 100644 index e99bc2414e306..0000000000000 --- a/eden/scm/lib/minibench/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "minibench", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "minibench"}, - "package": { - "authors": ["Meta Source Control Team "], - "autoexamples": False, - "description": "Minimal benchmark library.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-minibench", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", -) diff --git a/eden/scm/lib/minibench/examples/TARGETS b/eden/scm/lib/minibench/examples/TARGETS deleted file mode 100644 index 73259af76411f..0000000000000 --- a/eden/scm/lib/minibench/examples/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("sapling") - -rust_binary( - name = "fs_read", - srcs = ["fs_read.rs"], - autocargo = { - "cargo_toml_config": { - "package": {"name": "minibench_examples"}, - }, - }, - deps = [ - "fbsource//third-party/rust:crossbeam", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:tokio", - "//eden/scm/lib/minibench:minibench", - ], -) diff --git a/eden/scm/lib/minibytes/TARGETS b/eden/scm/lib/minibytes/TARGETS deleted file mode 100644 index fc54a8ec70235..0000000000000 --- a/eden/scm/lib/minibytes/TARGETS +++ /dev/null @@ -1,49 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "minibytes", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "features": { - "default": [ - "frombytes", - "frommmap", - "non-zerocopy-into", - ], - "frombytes": ["bytes"], - "frommmap": ["memmap2"], - "non-zerocopy-into": [], - }, - "lib": {"name": "minibytes"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Shared reference-counted bytes and str with zero-copy slicing support.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-minibytes", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = [ - "frombytes", - "frommmap", - "non-zerocopy-into", - ], - test_deps = [ - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:serde_cbor", - ], - # A test inside this target is using #[should_panic], setting the backtrace - # to false here, otherwise the test binary will try to extract the backtrace - # and the test will fail with leak sanatizer. - test_env = {"RUST_BACKTRACE": "0"}, - test_labels = ["tpx-rust-no-backtrace-workaround"], - deps = [ - "fbsource//third-party/rust:bytes", - "fbsource//third-party/rust:memmap2", - "fbsource//third-party/rust:serde", - ], -) diff --git a/eden/scm/lib/mpatch-sys/TARGETS b/eden/scm/lib/mpatch-sys/TARGETS deleted file mode 100644 index 3237a232e0118..0000000000000 --- a/eden/scm/lib/mpatch-sys/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "mpatch-sys", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "extra_buck_dependencies": {"build-dependencies": ["fbsource//third-party/rust:cc"]}, - "lib": {"name": "mpatch-sys"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-mpatch-sys", - "repository": "https://github.com/facebook/sapling", - }, - }}, - cpp_deps = ["//eden/scm:libmpatch"], - crate_root = "src/lib.rs", -) diff --git a/eden/scm/lib/mpatch/TARGETS b/eden/scm/lib/mpatch/TARGETS deleted file mode 100644 index c84fc1237a393..0000000000000 --- a/eden/scm/lib/mpatch/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "mpatch", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "mpatch"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-mpatch", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:libc", - "//eden/scm/lib/mpatch-sys:mpatch-sys", - ], -) diff --git a/eden/scm/lib/mutationstore/TARGETS b/eden/scm/lib/mutationstore/TARGETS deleted file mode 100644 index 35fcbbcedf9ca..0000000000000 --- a/eden/scm/lib/mutationstore/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "mutationstore", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": { - "dependencies": {"sapling-dag": {"features": ["render"]}}, - "dev-dependencies": {"sapling-types": { - "default-features": False, - "features": ["for-tests"], - }}, - }, - "extra_buck_dependencies": {"dev-dependencies": ["//eden/scm/lib/types:types"]}, - "lib": {"name": "mutationstore"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-mutationstore", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rand_chacha", - "fbsource//third-party/rust:tempfile", - "//eden/scm/lib/drawdag:drawdag", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bitflags", - "fbsource//third-party/rust:futures", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/lib/types:types", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) diff --git a/eden/scm/lib/nodemap/TARGETS b/eden/scm/lib/nodemap/TARGETS deleted file mode 100644 index f73cb55c2c01b..0000000000000 --- a/eden/scm/lib/nodemap/TARGETS +++ /dev/null @@ -1,34 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "nodemap", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dev-dependencies": {"sapling-types": { - "default-features": False, - "features": ["for-tests"], - }}}, - "extra_buck_dependencies": {"dev-dependencies": ["//eden/scm/lib/types:types"]}, - "lib": {"name": "nodemap"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-nodemap", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:thiserror", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/nonblocking/TARGETS b/eden/scm/lib/nonblocking/TARGETS deleted file mode 100644 index a9e968a3cf7d7..0000000000000 --- a/eden/scm/lib/nonblocking/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "nonblocking", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "nonblocking"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Call non-blocking async Rust from non-async Rust.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-nonblocking", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:futures", - ], -) diff --git a/eden/scm/lib/pathhistory/TARGETS b/eden/scm/lib/pathhistory/TARGETS deleted file mode 100644 index e8b7c9bd7c07d..0000000000000 --- a/eden/scm/lib/pathhistory/TARGETS +++ /dev/null @@ -1,35 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "pathhistory", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "pathhistory"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-pathhistory", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:tokio", - "//eden/scm/lib/dev-logger:dev-logger", - "//eden/scm/lib/manifest:manifest", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/manifest-tree:manifest-tree", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/pathmatcher/TARGETS b/eden/scm/lib/pathmatcher/TARGETS deleted file mode 100644 index 77e3b1c1b5f59..0000000000000 --- a/eden/scm/lib/pathmatcher/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "pathmatcher", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "pathmatcher"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-pathmatcher", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bitflags", - "fbsource//third-party/rust:fancy-regex", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:glob", - "fbsource//third-party/rust:globset", - "fbsource//third-party/rust:ignore", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:regex-automata", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/pathmatcher/types:pathmatcher-types", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/pathmatcher/types/TARGETS b/eden/scm/lib/pathmatcher/types/TARGETS deleted file mode 100644 index 3539d953bce5a..0000000000000 --- a/eden/scm/lib/pathmatcher/types/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "pathmatcher-types", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "pathmatcher-types"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-pathmatcher-types", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/pprint/TARGETS b/eden/scm/lib/pprint/TARGETS deleted file mode 100644 index 084b914747756..0000000000000 --- a/eden/scm/lib/pprint/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "pprint", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "pprint"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-pprint", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_cbor", - ], -) diff --git a/eden/scm/lib/procinfo/TARGETS b/eden/scm/lib/procinfo/TARGETS deleted file mode 100644 index 2149e5d75b494..0000000000000 --- a/eden/scm/lib/procinfo/TARGETS +++ /dev/null @@ -1,74 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "procinfo", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"target": {"'cfg(windows)'": {"dependencies": {"winapi": { - "features": [ - "handleapi", - "minwindef", - "processthreadsapi", - "psapi", - "tlhelp32", - ], - "version": "0.3", - }}}}}, - "extra_buck_dependencies": {"target": {'\'cfg(target_os = "macos")\'': {"build-dependencies": ["fbsource//third-party/rust:cc"]}}}, - "lib": {"name": "procinfo"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-procinfo", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "macos", - [ - ":macos_compat", - ], - ), - ( - "windows", - [ - "fbsource//third-party/rust:winapi", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:libc", - ], -) - -cpp_library( - name = "macos_compat", - srcs = ["darwin.c"], -) - -rust_binary( - name = "ppid", - srcs = ["examples/ppid.rs"], - autocargo = {"ignore_rule": True}, - unittests = False, - deps = [ - ":procinfo", - ], -) - -rust_binary( - name = "rss", - srcs = ["examples/rss.rs"], - autocargo = {"ignore_rule": True}, - unittests = False, - deps = [ - ":procinfo", - ], -) diff --git a/eden/scm/lib/progress/model/TARGETS b/eden/scm/lib/progress/model/TARGETS deleted file mode 100644 index 9f994c589c098..0000000000000 --- a/eden/scm/lib/progress/model/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "progress-model", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "progress-model"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-progress-model", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:arc-swap", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:paste", - "fbsource//third-party/rust:thread_local", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tracing", - ], -) diff --git a/eden/scm/lib/progress/render/TARGETS b/eden/scm/lib/progress/render/TARGETS deleted file mode 100644 index 9f48087f614ea..0000000000000 --- a/eden/scm/lib/progress/render/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "progress-render", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "progress-render"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-progress-render", - "repository": "https://github.com/facebook/sapling", - }, - }}, - test_deps = [ - ], - deps = [ - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:termwiz", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:unicode-segmentation", - "fbsource//third-party/rust:unicode-width", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/util/nodeipc:nodeipc", - ], -) diff --git a/eden/scm/lib/python-modules/TARGETS b/eden/scm/lib/python-modules/TARGETS deleted file mode 100644 index db8ef0df53bfb..0000000000000 --- a/eden/scm/lib/python-modules/TARGETS +++ /dev/null @@ -1,40 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_genrule") -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -buck_genrule( - name = "gen=compiled.rs", - out = "compiled.rs", - cmd = '$(exe //eden/scm/lib/python-modules/codegen:codegen) --out $OUT --python "$(exe :pymain)" --sys-path $(location //eden/scm:pure-modules)', -) - -# alternatively, if we know the buck target to the "python", we can use that instead. -python_binary( - name = "pymain", - main_src = "buck_pymain.py", - versions = {"python": "3.10"}, -) - -rust_library( - name = "python-modules", - srcs = ["src/lib.rs"], - autocargo = {"cargo_toml_config": { - "extra_buck_dependencies": {"build-dependencies": ["//eden/scm/lib/python-modules/codegen:codegen"]}, - "lib": {"name": "python-modules"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "GPL-2.0-only", - "name": "python-modules", - "repository": "https://github.com/facebook/sapling", - }, - }}, - mapped_srcs = {":gen=compiled.rs": "src/compiled.rs"}, - deps = [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:phf", - "//eden/scm/lib/zstdelta:zstdelta", - ], -) diff --git a/eden/scm/lib/python-modules/codegen/TARGETS b/eden/scm/lib/python-modules/codegen/TARGETS deleted file mode 100644 index 0137e752780f3..0000000000000 --- a/eden/scm/lib/python-modules/codegen/TARGETS +++ /dev/null @@ -1,16 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") - -oncall("sapling") - -rust_binary( - name = "codegen", - srcs = [ - "src/codegen.rs", - "src/main.rs", - "src/pycompile.py", - ], - crate_root = "src/main.rs", - deps = [ - "//eden/scm/lib/zstdelta:zstdelta", - ], -) diff --git a/eden/scm/lib/radixbuf/TARGETS b/eden/scm/lib/radixbuf/TARGETS deleted file mode 100644 index 15bcd901ec0f4..0000000000000 --- a/eden/scm/lib/radixbuf/TARGETS +++ /dev/null @@ -1,36 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "radixbuf", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "bench": [{ - "harness": False, - "name": "bench", - }], - "extra_buck_dependencies": {"dev-dependencies": [ - "//eden/scm/lib/minibench:minibench", - "fbsource//third-party/rust:rand_chacha", - ]}, - "features": {}, - "lib": {"name": "radixbuf"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-radixbuf", - "repository": "https://github.com/facebook/sapling", - }, - }}, - features = ["nobench"], - test_deps = [ - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand", - ], - deps = [ - "fbsource//third-party/rust:thiserror", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) diff --git a/eden/scm/lib/refencode/TARGETS b/eden/scm/lib/refencode/TARGETS deleted file mode 100644 index 4df4f9119ac8d..0000000000000 --- a/eden/scm/lib/refencode/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "refencode", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "refencode"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-refencode", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/renderdag/TARGETS b/eden/scm/lib/renderdag/TARGETS deleted file mode 100644 index f05ba25412b54..0000000000000 --- a/eden/scm/lib/renderdag/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "renderdag", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "extra_buck_dependencies": {"dependencies": ["fbsource//third-party/rust:serde"]}, - "features": { - "default": [], - "serialize": ["serde"], - }, - "lib": {"name": "renderdag"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Render a DAG into ASCII or Unicode text.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-renderdag", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = [], - test_deps = [ - "fbsource//third-party/rust:unicode-width", - "//eden/scm/lib/drawdag:drawdag", - ], - deps = [ - "fbsource//third-party/rust:bitflags", - ], -) diff --git a/eden/scm/lib/repo/TARGETS b/eden/scm/lib/repo/TARGETS deleted file mode 100644 index ae2a8f01acb16..0000000000000 --- a/eden/scm/lib/repo/TARGETS +++ /dev/null @@ -1,72 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "repo", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"sapling-constructors": {"default-features": False}}}, - "extra_buck_dependencies": {"dependencies": ["//eden/scm/lib/revisionstore:revisionstore"]}, - "features": { - "default": [], - "fb": [ - "sapling-configloader/fb", - "sapling-revisionstore/ods", - ], - "wdir": ["sapling-workingcopy"], - }, - "lib": {"name": "repo"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-repo", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = [ - "fb", - "wdir", - ], - test_deps = [ - "fbsource//third-party/rust:rand_chacha", - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:fail", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:lru-cache", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/cas-client:cas-client", - "//eden/scm/lib/commits/trait:commits-trait", - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/constructors:constructors", - "//eden/scm/lib/eagerepo:eagerepo", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/manifest-tree:manifest-tree", - "//eden/scm/lib/metalog:metalog", - "//eden/scm/lib/metrics:metrics", - "//eden/scm/lib/refencode:refencode", - "//eden/scm/lib/repo/repo-minimal-info:repo-minimal-info", - "//eden/scm/lib/repo/url:repourl", - "//eden/scm/lib/repolock:repolock", - "//eden/scm/lib/revisionstore:revisionstore", - "//eden/scm/lib/revsets:revsets", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/treestate:treestate", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/util/factory:factory", - "//eden/scm/lib/util/rewrite-macros:rewrite-macros", - "//eden/scm/lib/workingcopy:workingcopy", - ], -) diff --git a/eden/scm/lib/repo/repo-minimal-info/TARGETS b/eden/scm/lib/repo/repo-minimal-info/TARGETS deleted file mode 100644 index 8475b93226259..0000000000000 --- a/eden/scm/lib/repo/repo-minimal-info/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "repo-minimal-info", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "repo-minimal-info"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-repo-minimal-info", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:phf", - "//eden/scm/lib/gitcompat:gitcompat", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/repo/url/TARGETS b/eden/scm/lib/repo/url/TARGETS deleted file mode 100644 index b6d45d86b8970..0000000000000 --- a/eden/scm/lib/repo/url/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "repourl", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "repourl"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-repourl", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:fn-error-context", - "fbsource//third-party/rust:percent-encoding", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:url", - "//eden/scm/lib/config/model:configmodel", - ], -) diff --git a/eden/scm/lib/repolock/TARGETS b/eden/scm/lib/repolock/TARGETS deleted file mode 100644 index 44a98fada0601..0000000000000 --- a/eden/scm/lib/repolock/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "repolock", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "repolock"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-repolock", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:fs2", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/revisionstore/TARGETS b/eden/scm/lib/revisionstore/TARGETS deleted file mode 100644 index 99afa0e7c9ff3..0000000000000 --- a/eden/scm/lib/revisionstore/TARGETS +++ /dev/null @@ -1,142 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "revisionstore", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": { - "sapling-minibytes": {"features": ["frombytes"]}, - "sapling-version": {"path": "../version"}, - }}, - "extra_buck_dependencies": {"dependencies": [ - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/stats:stats", - ]}, - "features": { - "default": [], - "fb": [], - "for-tests": [], - "ods": [ - "fbinit", - "stats", - ], - }, - "lib": {"name": "revisionstore"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-revisionstore", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate = "revisionstore", - features = [ - "fb", - "for-tests", - "ods", - ], - test_deps = [ - "fbsource//third-party/rust:maplit", - "fbsource//third-party/rust:mockito", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand_chacha", - "fbsource//third-party/rust:tempfile", - ], - # A test inside this target is using #[should_panic], setting the backtrace - # to false here, otherwise the test binary will try to extract the backtrace - # and the test will fail with leak sanatizer. - test_env = {"RUST_BACKTRACE": "0"}, - test_labels = ["tpx-rust-no-backtrace-workaround"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:crossbeam", - "fbsource//third-party/rust:curl", - "fbsource//third-party/rust:fn-error-context", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:http", - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:sha2", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tokio-stream", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:url", - ":revisionstore_types", - "//common/rust/shed/fbinit:fbinit", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - "//common/rust/shed/stats:stats", - "//eden/mononoke/lfs_protocol:lfs_protocol", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/cas-client:cas-client", - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/clientinfo-async:clientinfo_async", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/hg-http:hg-http", - "//eden/scm/lib/hg-metrics:hg-metrics", - "//eden/scm/lib/hgtime:hgtime", - "//eden/scm/lib/http-client:http-client", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/lib/lz4-pyframe:lz4-pyframe", - "//eden/scm/lib/manifest-tree:manifest-tree", - "//eden/scm/lib/mincode:mincode", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/repo/url:repourl", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/util/format-util:format-util", - "//eden/scm/lib/version:rust_version", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) - -rust_library( - name = "revisionstore_types", - srcs = glob(["types/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "lib": {"name": "revisionstore_types"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-revisionstore_types", - "repository": "https://github.com/facebook/sapling", - }, - }, - "cargo_toml_dir": "types", - }, - crate_root = "types/lib.rs", - features = [ - "for-tests", - ], - test_deps = [ - "fbsource//third-party/rust:quickcheck", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_derive", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - ], -) diff --git a/eden/scm/lib/revlogindex/TARGETS b/eden/scm/lib/revlogindex/TARGETS deleted file mode 100644 index 421ece8b542f3..0000000000000 --- a/eden/scm/lib/revlogindex/TARGETS +++ /dev/null @@ -1,37 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "revlogindex", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "revlogindex"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-revlogindex", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:bit-vec", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:thiserror", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/lib/lz4-pyframe:lz4-pyframe", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/nonblocking:nonblocking", - "//eden/scm/lib/radixbuf:radixbuf", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/revsets/TARGETS b/eden/scm/lib/revsets/TARGETS deleted file mode 100644 index 527b0616c2134..0000000000000 --- a/eden/scm/lib/revsets/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "revsets", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "revsets"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-revsets", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:thiserror", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/metalog:metalog", - "//eden/scm/lib/refencode:refencode", - "//eden/scm/lib/treestate:treestate", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/hgplain:hgplain", - ], -) diff --git a/eden/scm/lib/runlog/TARGETS b/eden/scm/lib/runlog/TARGETS deleted file mode 100644 index b2de9635c1949..0000000000000 --- a/eden/scm/lib/runlog/TARGETS +++ /dev/null @@ -1,50 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "runlog", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "runlog"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-runlog", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - ], - ), - ], - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:chrono", - "fbsource//third-party/rust:fs2", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/hg-http:hg-http", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/sampling/TARGETS b/eden/scm/lib/sampling/TARGETS deleted file mode 100644 index 3d2c7cbff4327..0000000000000 --- a/eden/scm/lib/sampling/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "sampling", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "sampling"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-sampling", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/model:configmodel", - ], -) diff --git a/eden/scm/lib/sparse/TARGETS b/eden/scm/lib/sparse/TARGETS deleted file mode 100644 index 00288b6d19bbf..0000000000000 --- a/eden/scm/lib/sparse/TARGETS +++ /dev/null @@ -1,73 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "sparse", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "extra_buck_dependencies": { - "dependencies": ["fbsource//third-party/rust:futures"], - "dev-dependencies": ["fbsource//third-party/rust:tokio"], - }, - "features": { - "async": ["futures"], - "default": [], - }, - "lib": {"name": "sparse"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-sparse", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:globset", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/rewrite-macros:rewrite-macros", - ], -) - -rust_library( - name = "sparse-async", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "lib": {"name": "sparse"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-sparse", - "repository": "https://github.com/facebook/sapling", - }, - }, - "ignore_rule": True, - }, - crate = "sparse", - crate_root = "src/lib.rs", - features = ["async"], - test_deps = [ - "fbsource//third-party/rust:tokio", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:globset", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/spawn-ext/TARGETS b/eden/scm/lib/spawn-ext/TARGETS deleted file mode 100644 index fc3ab7390b2c4..0000000000000 --- a/eden/scm/lib/spawn-ext/TARGETS +++ /dev/null @@ -1,61 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "spawn-ext", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"target": {"'cfg(windows)'": {"dependencies": {"winapi": { - "features": [ - "handleapi", - "winbase", - ], - "version": "0.3", - }}}}}, - "lib": {"name": "spawn-ext"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-spawn-ext", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "windows", - [ - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:winapi", - ], - ), - ], - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], -) - -rust_binary( - name = "spawn", - srcs = ["examples/spawn.rs"], - autocargo = {"ignore_rule": True}, - unittests = False, - deps = [ - ":spawn-ext", - ], -) diff --git a/eden/scm/lib/status/TARGETS b/eden/scm/lib/status/TARGETS deleted file mode 100644 index 797c4b1aa5a1c..0000000000000 --- a/eden/scm/lib/status/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "status", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "status"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-status", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/storemodel/TARGETS b/eden/scm/lib/storemodel/TARGETS deleted file mode 100644 index c7d81628fa901..0000000000000 --- a/eden/scm/lib/storemodel/TARGETS +++ /dev/null @@ -1,34 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "storemodel", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "storemodel"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-storemodel", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/edenapi/trait:edenapi_trait", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/metalog:metalog", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/factory:factory", - ], -) diff --git a/eden/scm/lib/streams/TARGETS b/eden/scm/lib/streams/TARGETS deleted file mode 100644 index ea5cc876ffe05..0000000000000 --- a/eden/scm/lib/streams/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "streams", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "streams"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-streams", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tokio", - ], - deps = [ - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:pin-project", - ], -) diff --git a/eden/scm/lib/third-party/conch-parser/TARGETS b/eden/scm/lib/third-party/conch-parser/TARGETS deleted file mode 100644 index 4a9768fa81324..0000000000000 --- a/eden/scm/lib/third-party/conch-parser/TARGETS +++ /dev/null @@ -1,21 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "conch-parser", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "package": { - "authors": ["Ivan Petkov "], - "license": "MIT", - "version": "0.1.1", - }, - }, - }, - deps = [ - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:void", - ], -) diff --git a/eden/scm/lib/third-party/streampager/TARGETS b/eden/scm/lib/third-party/streampager/TARGETS deleted file mode 100644 index 537e21b67154e..0000000000000 --- a/eden/scm/lib/third-party/streampager/TARGETS +++ /dev/null @@ -1,67 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "streampager", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": { - "indexmap": {"features": []}, - "serde": {"features": ["derive"]}, - "smallvec": { - "default-features": False, - "features": [], - }, - "termwiz": {"features": []}, - }}, - "extra_buck_dependencies": {"dependencies": [ - "fbsource//third-party/rust:notify", - ]}, - "features": { - "keymap-file": [], - "load_file": ["notify"], - }, - "lib": {"name": "streampager"}, - "package": { - "authors": [ - "Mark Juggurnauth-Thomas ", - "Facebook Source Control Team ", - ], - "categories": [ - "command-line-utilities", - "text-processing", - ], - "description": "streampager is a pager for command output or large files", - "keywords": [ - "pager", - "less", - "more", - ], - "license": "MIT", - "name": "sapling-streampager", - "version": "0.10.3", - }, - }}, - deps = [ - "fbsource//third-party/rust:bit-set", - "fbsource//third-party/rust:dirs", - "fbsource//third-party/rust:enum_dispatch", - "fbsource//third-party/rust:indexmap", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:lru", - "fbsource//third-party/rust:memmap2", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:scopeguard", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:smallvec", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:terminfo", - "fbsource//third-party/rust:termwiz", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:toml", - "fbsource//third-party/rust:unicode-segmentation", - "fbsource//third-party/rust:unicode-width", - "fbsource//third-party/rust:vec_map", - ], -) diff --git a/eden/scm/lib/third-party/webview-sys/TARGETS b/eden/scm/lib/third-party/webview-sys/TARGETS deleted file mode 100644 index 702094505c5c8..0000000000000 --- a/eden/scm/lib/third-party/webview-sys/TARGETS +++ /dev/null @@ -1,102 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -# Build these targets with @//mode/mac-xcode - -rust_library( - name = "webview-sys", - srcs = ["lib.rs"], - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "build-dependencies": { - "cc": {"version": "1"}, - }, - }, - "lib": { - "name": "webview_sys", - "path": "lib.rs", - }, - "package": { - "authors": [ - "Boscop", - "zxey ", - ], - "build": "build.rs", - "categories": [ - "gui", - "web-programming", - "api-bindings", - "rendering", - "visualization", - ], - "description": "Rust native ffi bindings for webview", - "exclude": ["Cargo.lock"], - "keywords": [ - "web", - "gui", - "desktop", - "electron", - "webkit", - ], - "license": "MIT", - "links": "webview", - "name": "webview-sys", - "repository": "https://github.com/evangrayk/web-view", - "version": "0.6.2", - }, - }, - }, - compatible_with = [ - "ovr_config//os:macos", - ], - os_deps = [ - ( - "macos", - [ - ":webview-cocoa", - ], - ), - ], - # This is a workaround. Ideally it should move to `cpp_library` linker_flags. - rustc_flags = [ - "-lframework=CoreFoundation", - "-lframework=WebKit", - ], -) - -cpp_library( - name = "webview-cocoa", - srcs = ["webview_cocoa.c"], - headers = ["webview.h"], - compatible_with = [ - "ovr_config//os:macos", - ], - compiler_flags = [ - "-std=c11", - "-x", - "objective-c", - ], - # Need to update linker_flags allowlist to work. - # linker_flags = [ - # "-framework", - # "Cocoa", - # "-framework", - # "WebKit", - # ], - preprocessor_flags = ["-DNDEBUG"], -) - -rust_binary( - name = "example", - srcs = ["examples/example.rs"], - autocargo = {"ignore_rule": True}, - compatible_with = [ - "ovr_config//os:macos", - ], - crate_root = "examples/example.rs", - deps = [":webview-sys"], -) diff --git a/eden/scm/lib/third-party/windows-curses/TARGETS b/eden/scm/lib/third-party/windows-curses/TARGETS deleted file mode 100644 index a3cbea80a8435..0000000000000 --- a/eden/scm/lib/third-party/windows-curses/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("sapling") - -cpp_library( - name = "windows-curses", - srcs = glob(["**/*.c"]), - headers = glob(["**/*.h"]), - compatible_with = ["ovr_config//os:windows"], - include_paths = [ - ".", - "PDCurses", - ], - preprocessor_flags = [ - "-DPDC_WIDE", - "-DHAVE_NCURSESW", - "-DHAVE_TERM_H", - "-DHAVE_CURSES_RESIZE_TERM", - "-DHAVE_CURSES_TYPEAHEAD", - "-DHAVE_CURSES_HAS_KEY", - "-DHAVE_CURSES_FILTER", - "-DHAVE_CURSES_WCHGAT", - "-DHAVE_CURSES_USE_ENV", - "-DHAVE_CURSES_IMMEDOK", - "-DHAVE_CURSES_SYNCOK", - "-DWINDOW_HAS_FLAGS", - "-D_ISPAD=0x10", - ], - deps = [ - "fbsource//third-party/python:python", - ], -) diff --git a/eden/scm/lib/third-party/xdiff/TARGETS b/eden/scm/lib/third-party/xdiff/TARGETS deleted file mode 100644 index 3c2959b899747..0000000000000 --- a/eden/scm/lib/third-party/xdiff/TARGETS +++ /dev/null @@ -1,20 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("sapling") - -cpp_library( - name = "xdiff", - srcs = [ - "xdiffi.c", - "xprepare.c", - "xutils.c", - ], - headers = [ - "xdiff.h", - "xdiffi.h", - "xinclude.h", - "xmacros.h", - "xtypes.h", - "xutils.h", - ], -) diff --git a/eden/scm/lib/thrift-types/TARGETS b/eden/scm/lib/thrift-types/TARGETS deleted file mode 100644 index 84a18d16de44a..0000000000000 --- a/eden/scm/lib/thrift-types/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "thrift-types", - srcs = ["src/lib.rs"], - autocargo = {"cargo_toml_config": { - "lib": {"name": "thrift-types"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-thrift-types", - "repository": "https://github.com/facebook/sapling", - }, - }}, - named_deps = { - "edenfs": "//eden/fs/service:thrift-rust", - "edenfs_clients": "//eden/fs/service:thrift-rust-clients", - "edenfs_config": "//eden/fs/config:config_thrift-rust", - "fb303_core": "//fb303/thrift:fb303_core-rust", - "hgclient_conf": "//configerator/structs/scm/hg/hgclientconf:config-rust", - }, - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:thiserror", - "//thrift/lib/rust:fbthrift", - ], -) diff --git a/eden/scm/lib/tracing-analyzer/TARGETS b/eden/scm/lib/tracing-analyzer/TARGETS deleted file mode 100644 index 1a06678cae9a6..0000000000000 --- a/eden/scm/lib/tracing-analyzer/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "tracing-analyzer", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "tracing-analyzer"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-tracing-analyzer", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:serde_json", - "//eden/scm/lib/tracing-collector:tracing-collector", - ], -) diff --git a/eden/scm/lib/tracing-collector/TARGETS b/eden/scm/lib/tracing-collector/TARGETS deleted file mode 100644 index ca0b4bf0fe8bb..0000000000000 --- a/eden/scm/lib/tracing-collector/TARGETS +++ /dev/null @@ -1,41 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "tracing-collector", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"target": {"'cfg(windows)'": {"dependencies": {"winapi": { - "features": ["processthreadsapi"], - "version": "0.3.7", - }}}}}, - "extra_buck_dependencies": {"dependencies": [(None, "fbsource//third-party/rust:winapi")]}, - "lib": {"name": "tracing-collector"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-tracing-collector", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "windows", - [ - "fbsource//third-party/rust:winapi", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:indexmap", - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:tracing-subscriber", - ], -) diff --git a/eden/scm/lib/tracing-reload/TARGETS b/eden/scm/lib/tracing-reload/TARGETS deleted file mode 100644 index 17873195cdf18..0000000000000 --- a/eden/scm/lib/tracing-reload/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "tracing-reload", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "tracing-reload"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-tracing-reload", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:tracing-subscriber", - ], -) diff --git a/eden/scm/lib/tracing-runtime-callsite/TARGETS b/eden/scm/lib/tracing-runtime-callsite/TARGETS deleted file mode 100644 index c11531d47e086..0000000000000 --- a/eden/scm/lib/tracing-runtime-callsite/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "tracing-runtime-callsite", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "tracing-runtime-callsite"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-tracing-runtime-callsite", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:regex", - ], - deps = [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:tracing", - ], -) diff --git a/eden/scm/lib/tracing-sampler/TARGETS b/eden/scm/lib/tracing-sampler/TARGETS deleted file mode 100644 index e4e75df871426..0000000000000 --- a/eden/scm/lib/tracing-sampler/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "tracing-sampler", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "tracing-sampler"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-tracing-sampler", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:tracing-serde", - "fbsource//third-party/rust:tracing-subscriber", - "//eden/scm/lib/sampling:sampling", - ], -) diff --git a/eden/scm/lib/treestate/TARGETS b/eden/scm/lib/treestate/TARGETS deleted file mode 100644 index 38120aafa6411..0000000000000 --- a/eden/scm/lib/treestate/TARGETS +++ /dev/null @@ -1,45 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "treestate", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "treestate"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-treestate", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:itertools", - "fbsource//third-party/rust:pretty_assertions", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rand_chacha", - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bitflags", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:fs2", - "fbsource//third-party/rust:sha2", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:twox-hash", - "fbsource//third-party/rust:uuid", - "//eden/scm/lib/atomicfile:atomicfile", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/repolock:repolock", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) diff --git a/eden/scm/lib/types/TARGETS b/eden/scm/lib/types/TARGETS deleted file mode 100644 index d4514720bc02d..0000000000000 --- a/eden/scm/lib/types/TARGETS +++ /dev/null @@ -1,79 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "types", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "features": { - "default": ["for-tests"], - "for-tests": [ - "rand", - "quickcheck", - "lazy_static", - ], - }, - "lib": {"name": "types"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-types", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = ["for-tests"], - named_deps = { - "blake3-constants": "//blake3:blake3-constants-rust-nothrift", - }, - test_deps = [ - "fbsource//third-party/rust:assert_matches", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:serde_cbor", - "fbsource//third-party/rust:serde_json", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - ], - # A test inside this target is using #[should_panic], setting the backtrace - # to false here, otherwise the test binary will try to extract the backtrace - # and the test will fail with leak sanatizer. - test_env = {"RUST_BACKTRACE": "0"}, - test_labels = ["tpx-rust-no-backtrace-workaround"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:bitflags", - "fbsource//third-party/rust:blake3", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:ref-cast", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_bytes", - "fbsource//third-party/rust:serde_derive", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:thiserror", - "//common/rust/shed/quickcheck_arbitrary_derive:quickcheck_arbitrary_derive", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/util:util", - "//eden/scm/lib/vlqencoding:vlqencoding", - ], -) - -rust_binary( - name = "benchmark_types", - srcs = ["bench/main.rs"], - autocargo = {"ignore_rule": True}, - deps = [ - "fbsource//third-party/rust:criterion", - "fbsource//third-party/rust:faster-hex", - "fbsource//third-party/rust:hex", - "fbsource//third-party/rust:sha1", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/util/TARGETS b/eden/scm/lib/util/TARGETS deleted file mode 100644 index 8885acd8f3e67..0000000000000 --- a/eden/scm/lib/util/TARGETS +++ /dev/null @@ -1,76 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "util", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"target": {'\'cfg(target_os = "windows")\'': {"dependencies": {"winapi": {"features": [ - "fileapi", - "winnt", - "handleapi", - "winbase", - ]}}}}}, - "lib": {"name": "util"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Misc utilities used by Sapling.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-util", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:tempfile", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:tempfile", - ], - ), - ( - "windows", - [ - "fbsource//third-party/rust:widestring", - "fbsource//third-party/rust:winapi", - ], - ), - ], - test_deps = [ - "fbsource//third-party/rust:memmap2", - "fbsource//third-party/rust:tempfile", - ], - test_os_deps = [ - ( - "windows", - [ - "fbsource//third-party/rust:tempfile", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:dirs", - "fbsource//third-party/rust:fn-error-context", - "fbsource//third-party/rust:fs2", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:shell-escape", - "fbsource//third-party/rust:shellexpand", - "fbsource//third-party/rust:thiserror", - "//eden/scm/lib/atomicfile:atomicfile", - "//eden/scm/lib/lazystr:lazystr", - "//eden/scm/lib/util/rewrite-macros:rewrite-macros", - ], -) diff --git a/eden/scm/lib/util/atexit/TARGETS b/eden/scm/lib/util/atexit/TARGETS deleted file mode 100644 index 4589b78e4a087..0000000000000 --- a/eden/scm/lib/util/atexit/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "atexit", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "atexit"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-atexit", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:tracing", - ], -) diff --git a/eden/scm/lib/util/factory/TARGETS b/eden/scm/lib/util/factory/TARGETS deleted file mode 100644 index 40faac23bb721..0000000000000 --- a/eden/scm/lib/util/factory/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "factory", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "factory"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Global registry for constructors.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-factory", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tracing", - ], -) diff --git a/eden/scm/lib/util/format-util/TARGETS b/eden/scm/lib/util/format-util/TARGETS deleted file mode 100644 index a2335b924a589..0000000000000 --- a/eden/scm/lib/util/format-util/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "format-util", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "format-util"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-format-util", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:memchr", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/hgtime:hgtime", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/lib/util/hgplain/TARGETS b/eden/scm/lib/util/hgplain/TARGETS deleted file mode 100644 index 1c5f26ac2913f..0000000000000 --- a/eden/scm/lib/util/hgplain/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "hgplain", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "hgplain"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-hgplain", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/identity:identity", - ], -) diff --git a/eden/scm/lib/util/nodeipc/TARGETS b/eden/scm/lib/util/nodeipc/TARGETS deleted file mode 100644 index 3bbed1bdab3ef..0000000000000 --- a/eden/scm/lib/util/nodeipc/TARGETS +++ /dev/null @@ -1,80 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "nodeipc", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "nodeipc"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-nodeipc", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "windows", - [ - "fbsource//third-party/rust:winapi", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:filedescriptor", - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:paste", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "//eden/scm/lib/util/nodeipc/derive:nodeipc_derive", - ], -) - -rust_binary( - name = "hello_child", - srcs = ["examples/hello_child.rs"], - autocargo = {"ignore_rule": True}, - unittests = False, - deps = [ - "fbsource//third-party/rust:serde_json", - ":nodeipc", - ], -) - -rust_binary( - name = "spawn_sendfd", - srcs = ["examples/spawn_sendfd.rs"], - autocargo = {"ignore_rule": True}, - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "windows", - [ - "fbsource//third-party/rust:winapi", - ], - ), - ], - unittests = False, - deps = [ - "fbsource//third-party/rust:filedescriptor", - "fbsource//third-party/rust:serde_json", - ":nodeipc", - ], -) diff --git a/eden/scm/lib/util/nodeipc/derive/TARGETS b/eden/scm/lib/util/nodeipc/derive/TARGETS deleted file mode 100644 index 8b85f2a6e9324..0000000000000 --- a/eden/scm/lib/util/nodeipc/derive/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "nodeipc_derive", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "nodeipc_derive"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-nodeipc_derive", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - proc_macro = True, - rustc_flags = [ - "--crate-type", - "proc-macro", - ], -) diff --git a/eden/scm/lib/util/procutil/TARGETS b/eden/scm/lib/util/procutil/TARGETS deleted file mode 100644 index 5a9233cd05134..0000000000000 --- a/eden/scm/lib/util/procutil/TARGETS +++ /dev/null @@ -1,43 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "procutil", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "procutil"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-procutil", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "windows", - [ - "fbsource//third-party/rust:winapi", - "fbsource//third-party/rust:once_cell", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:tracing", - ], -) diff --git a/eden/scm/lib/util/pubsub/TARGETS b/eden/scm/lib/util/pubsub/TARGETS deleted file mode 100644 index 9a86092f5cbf3..0000000000000 --- a/eden/scm/lib/util/pubsub/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("mercurial_release") - -rust_library( - name = "pubsub", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "pubsub"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-pubsub", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tracing", - ], -) diff --git a/eden/scm/lib/util/rewrite-macros/TARGETS b/eden/scm/lib/util/rewrite-macros/TARGETS deleted file mode 100644 index 41f4c613a8bda..0000000000000 --- a/eden/scm/lib/util/rewrite-macros/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "rewrite-macros", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "extra_buck_dependencies": {"dev-dependencies": [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:tracing", - ]}, - "lib": {"name": "rewrite-macros"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Proc macros to rewrite code used by Sapling.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-rewrite-macros", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - doc_deps = [ - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:tempfile", - "fbsource//third-party/rust:tracing", - ], - proc_macro = True, - rustc_flags = [ - "--crate-type", - "proc-macro", - ], - deps = [ - "fbsource//third-party/rust:proc-macro2", - "fbsource//third-party/rust:quote", - "//eden/scm/lib/util/rewrite-macros/tree-pattern-match:tree-pattern-match", - ], -) diff --git a/eden/scm/lib/util/rewrite-macros/tree-pattern-match/TARGETS b/eden/scm/lib/util/rewrite-macros/tree-pattern-match/TARGETS deleted file mode 100644 index d09e01717d086..0000000000000 --- a/eden/scm/lib/util/rewrite-macros/tree-pattern-match/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "tree-pattern-match", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "tree-pattern-match"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "Pattern match for tree structures.", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-tree-pattern-match", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:bitflags", - ], -) diff --git a/eden/scm/lib/util/testutil/TARGETS b/eden/scm/lib/util/testutil/TARGETS deleted file mode 100644 index 4b72e1d18a563..0000000000000 --- a/eden/scm/lib/util/testutil/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "testutil", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "testutil"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-testutil", - "repository": "https://github.com/facebook/sapling", - }, - }}, - deps = [ - "fbsource//third-party/rust:fail", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - ], -) diff --git a/eden/scm/lib/util/time-interval/TARGETS b/eden/scm/lib/util/time-interval/TARGETS deleted file mode 100644 index 8d742bf9adaf7..0000000000000 --- a/eden/scm/lib/util/time-interval/TARGETS +++ /dev/null @@ -1,19 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "time-interval", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "time-interval"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-time-interval", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", -) diff --git a/eden/scm/lib/util/udsipc/TARGETS b/eden/scm/lib/util/udsipc/TARGETS deleted file mode 100644 index 2fcda77d54b5d..0000000000000 --- a/eden/scm/lib/util/udsipc/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "udsipc", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "udsipc"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-udsipc", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "windows", - [ - "fbsource//third-party/rust:uds_windows", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:fn-error-context", - "fbsource//third-party/rust:fs-err", - "//eden/scm/lib/util/nodeipc:nodeipc", - ], -) diff --git a/eden/scm/lib/version/TARGETS b/eden/scm/lib/version/TARGETS deleted file mode 100644 index 60c01c47b2ed0..0000000000000 --- a/eden/scm/lib/version/TARGETS +++ /dev/null @@ -1,34 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_genrule") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -buck_genrule( - name = "gen_rust_version_lib.rs", - out = "lib.rs", - # Restricting commands doesn't work on Windows. - bypass_restricted_cmd = True, - cmd = "$(exe //eden/scm:gen_version_py_bin) --version '%s' --release '%s' --revision '%s' $OUT" % ( - read_config("build_info", "package_version", ""), - read_config("build_info", "package_release", ""), - read_config("build_info", "revision", ""), - ), -) - -rust_library( - name = "rust_version", - autocargo = {"cargo_toml_config": { - "features": {"generated": []}, - "lib": {"name": "version"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-version", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate = "version", - features = ["generated"], - mapped_srcs = {":gen_rust_version_lib.rs": "lib.rs"}, -) diff --git a/eden/scm/lib/vfs/TARGETS b/eden/scm/lib/vfs/TARGETS deleted file mode 100644 index bd6bdfdbbb568..0000000000000 --- a/eden/scm/lib/vfs/TARGETS +++ /dev/null @@ -1,50 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "vfs", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "vfs"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-vfs", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "linux", - [ - "fbsource//third-party/rust:libc", - ], - ), - ( - "macos", - [ - "fbsource//third-party/rust:libc", - ], - ), - ], - test_deps = [ - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:crossbeam", - "fbsource//third-party/rust:dashmap", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/fsinfo:fsinfo", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/vlqencoding/TARGETS b/eden/scm/lib/vlqencoding/TARGETS deleted file mode 100644 index 7f889515730af..0000000000000 --- a/eden/scm/lib/vlqencoding/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "vlqencoding", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "bench": [{ - "harness": False, - "name": "bench", - }], - "lib": {"name": "vlqencoding"}, - "package": { - "authors": ["Meta Source Control Team "], - "description": "VLQ encoding (https://en.wikipedia.org/wiki/Variable-length_quantity).", - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-vlqencoding", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = ["fbsource//third-party/rust:quickcheck"], -) diff --git a/eden/scm/lib/webview-app/TARGETS b/eden/scm/lib/webview-app/TARGETS deleted file mode 100644 index 1e7bc486b9af3..0000000000000 --- a/eden/scm/lib/webview-app/TARGETS +++ /dev/null @@ -1,38 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "webview-app", - srcs = glob(["src/*"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "webview-app"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-webview-app", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - os_deps = [ - ( - "macos", - [ - "//eden/scm/lib/third-party/webview-sys:webview-sys", - "//eden/scm/lib/version:rust_version", - "fbsource//third-party/rust:base64", - "fbsource//third-party/rust:open", - "fbsource//third-party/rust:tinyfiledialogs", - "fbsource//third-party/rust:tracing", - ], - ), - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:dirs", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - ], -) diff --git a/eden/scm/lib/workingcopy/TARGETS b/eden/scm/lib/workingcopy/TARGETS deleted file mode 100644 index 6360a9c85e03c..0000000000000 --- a/eden/scm/lib/workingcopy/TARGETS +++ /dev/null @@ -1,68 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "workingcopy", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"sapling-edenfs-client": {"optional": True}}}, - "features": {"eden": ["sapling-edenfs-client"]}, - "lib": {"name": "workingcopy"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-workingcopy", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - features = [ - "eden", - ], - test_deps = [ - "fbsource//third-party/rust:async-trait", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:bitflags", - "fbsource//third-party/rust:crossbeam", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:once_cell", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:regex", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:thiserror", - "fbsource//third-party/rust:tokio", - "fbsource//third-party/rust:tracing", - "fbsource//third-party/rust:whoami", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/config/set:configset", - "//eden/scm/lib/context:context", - "//eden/scm/lib/edenfs-client:edenfs-client", - "//eden/scm/lib/gitcompat:gitcompat", - "//eden/scm/lib/hgtime:hgtime", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/io/term/logger:termlogger", - "//eden/scm/lib/journal:journal", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/manifest-tree:manifest-tree", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/repolock:repolock", - "//eden/scm/lib/sparse:sparse", - "//eden/scm/lib/status:status", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/treestate:treestate", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/vfs:vfs", - "//eden/scm/lib/workingcopy/repostate:repostate", - "//watchman/rust/watchman_client:watchman_client", - ], -) diff --git a/eden/scm/lib/workingcopy/repostate/TARGETS b/eden/scm/lib/workingcopy/repostate/TARGETS deleted file mode 100644 index 673d3b1e0e159..0000000000000 --- a/eden/scm/lib/workingcopy/repostate/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "repostate", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "repostate"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-repostate", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:tempfile", - "//eden/scm/lib/repolock:repolock", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:serde", - "//eden/scm/lib/identity:identity", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/lib/xdiff-sys/TARGETS b/eden/scm/lib/xdiff-sys/TARGETS deleted file mode 100644 index 20bdd58548d67..0000000000000 --- a/eden/scm/lib/xdiff-sys/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -# the library itself -rust_library( - name = "xdiff-sys", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "extra_buck_dependencies": {"build-dependencies": ["fbsource//third-party/rust:cc"]}, - "lib": {"name": "xdiff-sys"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-xdiff-sys", - "repository": "https://github.com/facebook/sapling", - }, - }}, - cpp_deps = ["//eden/scm/lib/third-party/xdiff:xdiff"], - crate_root = "src/lib.rs", -) - -# small demo binary using the bindings -rust_binary( - name = "xdiff-sys-bin", - srcs = ["src/bin/xdiff-sys-bin.rs"], - crate_root = "src/bin/xdiff-sys-bin.rs", - deps = [":xdiff-sys"], -) diff --git a/eden/scm/lib/xdiff/TARGETS b/eden/scm/lib/xdiff/TARGETS deleted file mode 100644 index 0d385826a0d33..0000000000000 --- a/eden/scm/lib/xdiff/TARGETS +++ /dev/null @@ -1,51 +0,0 @@ -load("@fbcode_macros//build_defs:rust_binary.bzl", "rust_binary") -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") -load("@fbsource//tools/build_defs:cram_test.bzl", "cram_test") - -oncall("sapling") - -rust_library( - name = "xdiff", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "lib": {"name": "xdiff"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-xdiff", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/xdiff-sys:xdiff-sys", - ], -) - -# example binary that uses 'xdiff' library to implement `diff` command -rust_binary( - name = "diff", - srcs = ["src/bin/diff.rs"], - deps = [ - "fbsource//third-party/rust:structopt", - "//eden/scm/lib/xdiff:xdiff", - ], -) - -# cram tests that use the example binary to test the library -cram_test( - name = "tests", - srcs = glob([ - "tests/*.t", - ]) + [ - "tests/setup.sh", - ], - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - env = { - "XDIFF": "$(location :diff)", - }, -) diff --git a/eden/scm/lib/zstdelta/TARGETS b/eden/scm/lib/zstdelta/TARGETS deleted file mode 100644 index 0c36e6b9fce83..0000000000000 --- a/eden/scm/lib/zstdelta/TARGETS +++ /dev/null @@ -1,34 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "zstdelta", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "bin": [{ - "doc": False, - "name": "zstdelta", - "path": "src/main.rs", - }], - "dependencies_override": {"dependencies": {"zstd-sys": {"features": ["experimental"]}}}, - "lib": {"name": "zstdelta"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-zstdelta", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:rand", - "fbsource//third-party/rust:rand_chacha", - ], - deps = [ - "fbsource//third-party/rust:libc", - "fbsource//third-party/rust:zstd-sys", - ], -) diff --git a/eden/scm/lib/zstore/TARGETS b/eden/scm/lib/zstore/TARGETS deleted file mode 100644 index 804b13f74771c..0000000000000 --- a/eden/scm/lib/zstore/TARGETS +++ /dev/null @@ -1,37 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "zstore", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": {"sapling-minibytes": {"features": ["frombytes"]}}}, - "lib": {"name": "zstore"}, - "package": { - "authors": ["Meta Source Control Team "], - "homepage": "https://sapling-scm.com/", - "license": "MIT", - "name": "sapling-zstore", - "repository": "https://github.com/facebook/sapling", - }, - }}, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:tempfile", - ], - deps = [ - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:lru-cache", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde", - "fbsource//third-party/rust:sha1", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/lib/mincode:mincode", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/types:types", - "//eden/scm/lib/zstdelta:zstdelta", - ], -) diff --git a/eden/scm/newdoc/TARGETS b/eden/scm/newdoc/TARGETS deleted file mode 100644 index e4623bcad2c16..0000000000000 --- a/eden/scm/newdoc/TARGETS +++ /dev/null @@ -1 +0,0 @@ -oncall("sapling") diff --git a/eden/scm/sapling/cext/TARGETS b/eden/scm/sapling/cext/TARGETS deleted file mode 100644 index 8cc4a3750006e..0000000000000 --- a/eden/scm/sapling/cext/TARGETS +++ /dev/null @@ -1,100 +0,0 @@ -load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library") - -oncall("sapling") - -cpp_library( - name = "util", - headers = [ - "util.h", - ], - exported_deps = [ - "//eden/scm:core_headers", - ], -) - -cpp_library( - name = "bdiff", - srcs = [ - "bdiff.c", - ], - compiler_flags = [ - "-fno-strict-aliasing", - "-Wno-missing-field-initializers", - ], - deps = [ - "fbsource//third-party/python:python", - "//eden/scm:core_headers", - "//eden/scm:libbdiff", - ], -) - -cpp_library( - name = "mpatch", - srcs = [ - "mpatch.c", - ], - compiler_flags = [ - "-fno-strict-aliasing", - "-Wno-missing-field-initializers", - "-Wno-deprecated-declarations", - ], - deps = [ - "fbsource//third-party/python:python", - ":util", - "//eden/scm:core_headers", - "//eden/scm:libmpatch", - ], -) - -cpp_library( - name = "osutil", - srcs = ["osutil.c"], - compiler_flags = [ - "-fno-strict-aliasing", - "-Wno-missing-field-initializers", - ], - preprocessor_flags = ["-DHAVE_LINUX_STATFS"], - deps = [ - "fbsource//third-party/python:python", - ":util", - ], -) - -cpp_library( - name = "parsers", - srcs = [ - "charencode.c", - "manifest.c", - "parsers.c", - "revlog.c", - ], - # Python 2.x violate's C's strict aliasing rules, so compile with - # -fno-strict-aliasing. This has been fixed in Python 3 (PEP 3123) - compiler_flags = [ - "-fno-strict-aliasing", - "-Wno-missing-field-initializers", - "-Wno-sign-compare", - ], - deps = [ - ":util", - ], - exported_deps = [ - "fbsource//third-party/python:python", - "//eden/scm:core_headers", - ], -) - -cpp_library( - name = "evalframe", - srcs = [ - "evalframe.c", - ], - compiler_flags = [ - "-fno-strict-aliasing", - "-Wno-missing-field-initializers", - "-Wno-deprecated-declarations", - ], - deps = [ - "fbsource//third-party/python:python", - ], -) diff --git a/eden/scm/saplingnative/bindings/TARGETS b/eden/scm/saplingnative/bindings/TARGETS deleted file mode 100644 index 50808d8755b3c..0000000000000 --- a/eden/scm/saplingnative/bindings/TARGETS +++ /dev/null @@ -1,104 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "bindings", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": ["python3-sys"], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:paste", - # see update_modules.sh - # [[[cog - # import cog, glob, os - # for path in sorted(glob.glob('modules/py*/TARGETS')): - # name = os.path.basename(os.path.dirname(path)) - # cog.outl(f'"//eden/scm/saplingnative/bindings/modules/{name}:{name}",') - # ]]] - "//eden/scm/saplingnative/bindings/modules/pyatexit:pyatexit", - "//eden/scm/saplingnative/bindings/modules/pyauth:pyauth", - "//eden/scm/saplingnative/bindings/modules/pyblackbox:pyblackbox", - "//eden/scm/saplingnative/bindings/modules/pybytes:pybytes", - "//eden/scm/saplingnative/bindings/modules/pycats:pycats", - "//eden/scm/saplingnative/bindings/modules/pycbor:pycbor", - "//eden/scm/saplingnative/bindings/modules/pycext:pycext", - "//eden/scm/saplingnative/bindings/modules/pycheckout:pycheckout", - "//eden/scm/saplingnative/bindings/modules/pyclientinfo:pyclientinfo", - "//eden/scm/saplingnative/bindings/modules/pycliparser:pycliparser", - "//eden/scm/saplingnative/bindings/modules/pyconchparser:pyconchparser", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - "//eden/scm/saplingnative/bindings/modules/pycontext:pycontext", - "//eden/scm/saplingnative/bindings/modules/pycopytrace:pycopytrace", - "//eden/scm/saplingnative/bindings/modules/pydag:pydag", - "//eden/scm/saplingnative/bindings/modules/pydiffhelpers:pydiffhelpers", - "//eden/scm/saplingnative/bindings/modules/pydirs:pydirs", - "//eden/scm/saplingnative/bindings/modules/pydoctor:pydoctor", - "//eden/scm/saplingnative/bindings/modules/pydrawdag:pydrawdag", - "//eden/scm/saplingnative/bindings/modules/pyeagerepo:pyeagerepo", - "//eden/scm/saplingnative/bindings/modules/pyedenapi:pyedenapi", - "//eden/scm/saplingnative/bindings/modules/pyerror:pyerror", - "//eden/scm/saplingnative/bindings/modules/pyexchange:pyexchange", - "//eden/scm/saplingnative/bindings/modules/pyfail:pyfail", - "//eden/scm/saplingnative/bindings/modules/pyformatutil:pyformatutil", - "//eden/scm/saplingnative/bindings/modules/pyfs:pyfs", - "//eden/scm/saplingnative/bindings/modules/pygitcompat:pygitcompat", - "//eden/scm/saplingnative/bindings/modules/pygitstore:pygitstore", - "//eden/scm/saplingnative/bindings/modules/pyhgmetrics:pyhgmetrics", - "//eden/scm/saplingnative/bindings/modules/pyhgtime:pyhgtime", - "//eden/scm/saplingnative/bindings/modules/pyidentity:pyidentity", - "//eden/scm/saplingnative/bindings/modules/pyindexedlog:pyindexedlog", - "//eden/scm/saplingnative/bindings/modules/pyio:pyio", - "//eden/scm/saplingnative/bindings/modules/pyjournal:pyjournal", - "//eden/scm/saplingnative/bindings/modules/pylinelog:pylinelog", - "//eden/scm/saplingnative/bindings/modules/pylock:pylock", - "//eden/scm/saplingnative/bindings/modules/pylz4:pylz4", - "//eden/scm/saplingnative/bindings/modules/pymanifest:pymanifest", - "//eden/scm/saplingnative/bindings/modules/pymetalog:pymetalog", - "//eden/scm/saplingnative/bindings/modules/pymodules:pymodules", - "//eden/scm/saplingnative/bindings/modules/pymutationstore:pymutationstore", - "//eden/scm/saplingnative/bindings/modules/pynodeipc:pynodeipc", - "//eden/scm/saplingnative/bindings/modules/pynodemap:pynodemap", - "//eden/scm/saplingnative/bindings/modules/pypathhistory:pypathhistory", - "//eden/scm/saplingnative/bindings/modules/pypathmatcher:pypathmatcher", - "//eden/scm/saplingnative/bindings/modules/pypprint:pypprint", - "//eden/scm/saplingnative/bindings/modules/pyprocess:pyprocess", - "//eden/scm/saplingnative/bindings/modules/pyprogress:pyprogress", - "//eden/scm/saplingnative/bindings/modules/pyrefencode:pyrefencode", - "//eden/scm/saplingnative/bindings/modules/pyregex:pyregex", - "//eden/scm/saplingnative/bindings/modules/pyrenderdag:pyrenderdag", - "//eden/scm/saplingnative/bindings/modules/pyrepo:pyrepo", - "//eden/scm/saplingnative/bindings/modules/pyrevisionstore:pyrevisionstore", - "//eden/scm/saplingnative/bindings/modules/pyrevlogindex:pyrevlogindex", - "//eden/scm/saplingnative/bindings/modules/pysptui:pysptui", - "//eden/scm/saplingnative/bindings/modules/pystatus:pystatus", - "//eden/scm/saplingnative/bindings/modules/pystoremodel:pystoremodel", - "//eden/scm/saplingnative/bindings/modules/pythreading:pythreading", - "//eden/scm/saplingnative/bindings/modules/pytoml:pytoml", - "//eden/scm/saplingnative/bindings/modules/pytracing:pytracing", - "//eden/scm/saplingnative/bindings/modules/pytreestate:pytreestate", - "//eden/scm/saplingnative/bindings/modules/pyversion:pyversion", - "//eden/scm/saplingnative/bindings/modules/pyvlq:pyvlq", - "//eden/scm/saplingnative/bindings/modules/pywebview:pywebview", - "//eden/scm/saplingnative/bindings/modules/pyworker:pyworker", - "//eden/scm/saplingnative/bindings/modules/pyworkingcopy:pyworkingcopy", - "//eden/scm/saplingnative/bindings/modules/pyworkingcopyclient:pyworkingcopyclient", - "//eden/scm/saplingnative/bindings/modules/pyxdiff:pyxdiff", - "//eden/scm/saplingnative/bindings/modules/pyzstd:pyzstd", - "//eden/scm/saplingnative/bindings/modules/pyzstore:pyzstore", - # [[[end]]] - "//eden/scm/lib/cpython-ext:cpython-ext", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyatexit/TARGETS b/eden/scm/saplingnative/bindings/modules/pyatexit/TARGETS deleted file mode 100644 index 1b35cd31cad24..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyatexit/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyatexit", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/util/atexit:atexit", - "//eden/scm/lib/util/procutil:procutil", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyauth/TARGETS b/eden/scm/saplingnative/bindings/modules/pyauth/TARGETS deleted file mode 100644 index 99381df2e6173..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyauth/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyauth", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:url", - "//eden/scm/lib/auth:auth", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyblackbox/TARGETS b/eden/scm/saplingnative/bindings/modules/pyblackbox/TARGETS deleted file mode 100644 index f87a02b2202ca..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyblackbox/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyblackbox", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/blackbox:blackbox", - "//eden/scm/lib/cpython-ext:cpython-ext", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pybytes/TARGETS b/eden/scm/saplingnative/bindings/modules/pybytes/TARGETS deleted file mode 100644 index 096f20a3c5aea..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pybytes/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pybytes", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - include_python_sys = True, - deps = [ - "//eden/scm/lib/minibytes:minibytes", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pycats/TARGETS b/eden/scm/saplingnative/bindings/modules/pycats/TARGETS deleted file mode 100644 index 2d82552b325b2..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pycats/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pycats", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cats:cats", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pycbor/TARGETS b/eden/scm/saplingnative/bindings/modules/pycbor/TARGETS deleted file mode 100644 index 9e9b81990e8c8..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pycbor/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pycbor", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:serde_cbor", - "//eden/scm/lib/cpython-ext:cpython-ext", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pycext/TARGETS b/eden/scm/saplingnative/bindings/modules/pycext/TARGETS deleted file mode 100644 index f1af6390ab2a6..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pycext/TARGETS +++ /dev/null @@ -1,42 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pycext", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "default-features": False, - "features": ["python3-sys"], - }, - }, - }, - "extra_buck_dependencies": { - "build-dependencies": ["fbsource//third-party/rust:cc"], - }, - }, - }, - crate_root = "src/lib.rs", - include_python_sys = True, - os_deps = [ - ( - "windows", - [ - "//eden/scm/lib/third-party/windows-curses:windows-curses", - ], - ), - ], - deps = [ - "//eden/scm:bser", - "//eden/scm:traceprof", - "//eden/scm/sapling/cext:bdiff", - "//eden/scm/sapling/cext:evalframe", - "//eden/scm/sapling/cext:mpatch", - "//eden/scm/sapling/cext:osutil", - "//eden/scm/sapling/cext:parsers", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pycheckout/TARGETS b/eden/scm/saplingnative/bindings/modules/pycheckout/TARGETS deleted file mode 100644 index 597529415a984..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pycheckout/TARGETS +++ /dev/null @@ -1,49 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pycheckout", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - "sapling-io": {"optional": True}, - "sapling-workingcopy": {"optional": True}, - }}, - "features": { - "default": [], - "eden": [ - "sapling-checkout/eden", - "sapling-io", - "sapling-workingcopy", - ], - }, - }}, - crate_root = "src/lib.rs", - features = ["eden"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:parking_lot", - "//eden/scm/lib/checkout:checkout", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/io:io", - "//eden/scm/lib/io/term/logger:termlogger", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/manifest-tree:manifest-tree", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/vfs:vfs", - "//eden/scm/lib/workingcopy:workingcopy", - "//eden/scm/saplingnative/bindings/modules/pymanifest:pymanifest", - "//eden/scm/saplingnative/bindings/modules/pypathmatcher:pypathmatcher", - "//eden/scm/saplingnative/bindings/modules/pystatus:pystatus", - "//eden/scm/saplingnative/bindings/modules/pytreestate:pytreestate", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyclientinfo/TARGETS b/eden/scm/saplingnative/bindings/modules/pyclientinfo/TARGETS deleted file mode 100644 index 40f46d811f20e..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyclientinfo/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyclientinfo", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clientinfo:clientinfo", - "//eden/scm/lib/cpython-ext:cpython-ext", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pycliparser/TARGETS b/eden/scm/saplingnative/bindings/modules/pycliparser/TARGETS deleted file mode 100644 index 9ecd7f91560d4..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pycliparser/TARGETS +++ /dev/null @@ -1,23 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pycliparser", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": {"dependencies_override": {"dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - "sapling-cliparser": {"features": ["python"]}, - }}}}, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cliparser:cliparser", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyconchparser/TARGETS b/eden/scm/saplingnative/bindings/modules/pyconchparser/TARGETS deleted file mode 100644 index daeae91acb039..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyconchparser/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyconchparser", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - link_style = "static", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/third-party/conch-parser:conch-parser", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyconfigloader/TARGETS b/eden/scm/saplingnative/bindings/modules/pyconfigloader/TARGETS deleted file mode 100644 index bd1ae2e825eb1..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyconfigloader/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyconfigloader", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/config/loader:configloader", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/repo/repo-minimal-info:repo-minimal-info", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pycontext/TARGETS b/eden/scm/saplingnative/bindings/modules/pycontext/TARGETS deleted file mode 100644 index 1863cf60e6aa8..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pycontext/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pycontext", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/config/set:configset", - "//eden/scm/lib/context:context", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/io:io", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pycopytrace/TARGETS b/eden/scm/saplingnative/bindings/modules/pycopytrace/TARGETS deleted file mode 100644 index 467a283c87a18..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pycopytrace/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pycopytrace", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/copytrace:copytrace", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/saplingnative/bindings/modules/pypathmatcher:pypathmatcher", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pydag/TARGETS b/eden/scm/saplingnative/bindings/modules/pydag/TARGETS deleted file mode 100644 index 46da0662dec75..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pydag/TARGETS +++ /dev/null @@ -1,39 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pydag", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:parking_lot", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/commits:commits", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - "//eden/scm/saplingnative/bindings/modules/pyedenapi:pyedenapi", - "//eden/scm/saplingnative/bindings/modules/pyio:pyio", - "//eden/scm/saplingnative/bindings/modules/pymetalog:pymetalog", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pydiffhelpers/TARGETS b/eden/scm/saplingnative/bindings/modules/pydiffhelpers/TARGETS deleted file mode 100644 index 449b925014759..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pydiffhelpers/TARGETS +++ /dev/null @@ -1,22 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pydiffhelpers", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", -) diff --git a/eden/scm/saplingnative/bindings/modules/pydirs/TARGETS b/eden/scm/saplingnative/bindings/modules/pydirs/TARGETS deleted file mode 100644 index 7cb48d59ed0e0..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pydirs/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pydirs", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:dirs", - "//eden/scm/lib/cpython-ext:cpython-ext", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pydoctor/TARGETS b/eden/scm/saplingnative/bindings/modules/pydoctor/TARGETS deleted file mode 100644 index a4ca31f8bef77..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pydoctor/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pydoctor", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/doctor/network:network-doctor", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pydrawdag/TARGETS b/eden/scm/saplingnative/bindings/modules/pydrawdag/TARGETS deleted file mode 100644 index bdd43189c3666..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pydrawdag/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pydrawdag", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/drawdag:drawdag", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyeagerepo/TARGETS b/eden/scm/saplingnative/bindings/modules/pyeagerepo/TARGETS deleted file mode 100644 index 47f76d6e2cd46..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyeagerepo/TARGETS +++ /dev/null @@ -1,34 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyeagerepo", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/eagerepo:eagerepo", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/repo/url:repourl", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - "//eden/scm/saplingnative/bindings/modules/pydag:pydag", - "//eden/scm/saplingnative/bindings/modules/pyedenapi:pyedenapi", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyedenapi/TARGETS b/eden/scm/saplingnative/bindings/modules/pyedenapi/TARGETS deleted file mode 100644 index 242945849a1e7..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyedenapi/TARGETS +++ /dev/null @@ -1,47 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyedenapi", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - "extra_buck_dependencies": { - "dependencies": [ - "//eden/scm/lib/revisionstore:revisionstore", - ], - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:futures", - "fbsource//third-party/rust:sha1", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/cpython-async:cpython-async", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/dag/dag-types:dag-types", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/edenapi/ext:edenapi_ext", - "//eden/scm/lib/edenapi/types:edenapi_types", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/repo/url:repourl", - "//eden/scm/lib/revisionstore:revisionstore", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/format-util:format-util", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - "//eden/scm/saplingnative/bindings/modules/pyrevisionstore:pyrevisionstore", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyerror/TARGETS b/eden/scm/saplingnative/bindings/modules/pyerror/TARGETS deleted file mode 100644 index 81cabeb90e1dd..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyerror/TARGETS +++ /dev/null @@ -1,39 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyerror", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/auth:auth", - "//eden/scm/lib/checkout:checkout", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/edenapi:edenapi", - "//eden/scm/lib/http-client:http-client", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/lib/metalog:metalog", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/repolock:repolock", - "//eden/scm/lib/revisionstore:revisionstore", - "//eden/scm/lib/revlogindex:revlogindex", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyexchange/TARGETS b/eden/scm/saplingnative/bindings/modules/pyexchange/TARGETS deleted file mode 100644 index 4317c77dded7e..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyexchange/TARGETS +++ /dev/null @@ -1,31 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyexchange", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/exchange:exchange", - "//eden/scm/lib/types:types", - "//eden/scm/saplingnative/bindings/modules/pydag:pydag", - "//eden/scm/saplingnative/bindings/modules/pyedenapi:pyedenapi", - "//eden/scm/saplingnative/bindings/modules/pymetalog:pymetalog", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyfail/TARGETS b/eden/scm/saplingnative/bindings/modules/pyfail/TARGETS deleted file mode 100644 index f34a3b07d37c6..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyfail/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyfail", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:fail", - "//eden/scm/lib/cpython-ext:cpython-ext", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyformatutil/TARGETS b/eden/scm/saplingnative/bindings/modules/pyformatutil/TARGETS deleted file mode 100644 index 5b9476c9b372a..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyformatutil/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyformatutil", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util/format-util:format-util", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyfs/TARGETS b/eden/scm/saplingnative/bindings/modules/pyfs/TARGETS deleted file mode 100644 index b18a20a023690..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyfs/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyfs", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/fsinfo:fsinfo", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pygitcompat/TARGETS b/eden/scm/saplingnative/bindings/modules/pygitcompat/TARGETS deleted file mode 100644 index 8c32fea1abb87..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pygitcompat/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pygitcompat", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/gitcompat:gitcompat", - "//eden/scm/lib/types:types", - "//eden/scm/saplingnative/bindings/modules/pyprocess:pyprocess", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pygitstore/TARGETS b/eden/scm/saplingnative/bindings/modules/pygitstore/TARGETS deleted file mode 100644 index 3b8de005d855d..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pygitstore/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pygitstore", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/gitstore:gitstore", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyhgmetrics/TARGETS b/eden/scm/saplingnative/bindings/modules/pyhgmetrics/TARGETS deleted file mode 100644 index 73d3227cfb9f8..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyhgmetrics/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyhgmetrics", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/hg-metrics:hg-metrics", - "//eden/scm/lib/metrics:metrics", - "//eden/scm/lib/sampling:sampling", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyhgtime/TARGETS b/eden/scm/saplingnative/bindings/modules/pyhgtime/TARGETS deleted file mode 100644 index 4fcb3542f2e3f..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyhgtime/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyhgtime", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/hgtime:hgtime", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyidentity/TARGETS b/eden/scm/saplingnative/bindings/modules/pyidentity/TARGETS deleted file mode 100644 index 1af8d2b062a23..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyidentity/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyidentity", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/identity:identity", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyindexedlog/TARGETS b/eden/scm/saplingnative/bindings/modules/pyindexedlog/TARGETS deleted file mode 100644 index 3d9d93d35758c..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyindexedlog/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyindexedlog", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/indexedlog:indexedlog", - "//eden/scm/saplingnative/bindings/modules/pybytes:pybytes", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyio/TARGETS b/eden/scm/saplingnative/bindings/modules/pyio/TARGETS deleted file mode 100644 index 393a3340e0dec..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyio/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyio", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/io:io", - "//eden/scm/lib/io/term/style:termstyle", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyjournal/TARGETS b/eden/scm/saplingnative/bindings/modules/pyjournal/TARGETS deleted file mode 100644 index de0894caa2f16..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyjournal/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyjournal", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/hgtime:hgtime", - "//eden/scm/lib/journal:journal", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pylinelog/TARGETS b/eden/scm/saplingnative/bindings/modules/pylinelog/TARGETS deleted file mode 100644 index 93104e2eb2fa3..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pylinelog/TARGETS +++ /dev/null @@ -1,24 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pylinelog", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "default-features": False, - "features": ["python3-sys"], - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/linelog:linelog", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pylock/TARGETS b/eden/scm/saplingnative/bindings/modules/pylock/TARGETS deleted file mode 100644 index 75e0f43033f36..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pylock/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pylock", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/repolock:repolock", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pylz4/TARGETS b/eden/scm/saplingnative/bindings/modules/pylz4/TARGETS deleted file mode 100644 index 01cbc871ba19c..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pylz4/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pylz4", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/lz4-pyframe:lz4-pyframe", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pymanifest/TARGETS b/eden/scm/saplingnative/bindings/modules/pymanifest/TARGETS deleted file mode 100644 index 94a66664d74c1..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pymanifest/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pymanifest", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:parking_lot", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/manifest:manifest", - "//eden/scm/lib/manifest-tree:manifest-tree", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/types:types", - "//eden/scm/saplingnative/bindings/modules/pypathmatcher:pypathmatcher", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pymetalog/TARGETS b/eden/scm/saplingnative/bindings/modules/pymetalog/TARGETS deleted file mode 100644 index a3123454b2b1d..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pymetalog/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pymetalog", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:parking_lot", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/metalog:metalog", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pymodules/TARGETS b/eden/scm/saplingnative/bindings/modules/pymodules/TARGETS deleted file mode 100644 index 7bcdc18334ea6..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pymodules/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pymodules", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": ["python3-sys"], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/python-modules:python-modules", - "//eden/scm/saplingnative/bindings/modules/pybytes:pybytes", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pymutationstore/TARGETS b/eden/scm/saplingnative/bindings/modules/pymutationstore/TARGETS deleted file mode 100644 index 6f95dc9f119c8..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pymutationstore/TARGETS +++ /dev/null @@ -1,33 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pymutationstore", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:byteorder", - "fbsource//third-party/rust:thiserror", - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/mutationstore:mutationstore", - "//eden/scm/lib/types:types", - "//eden/scm/lib/vlqencoding:vlqencoding", - "//eden/scm/saplingnative/bindings/modules/pydag:pydag", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pynodeipc/TARGETS b/eden/scm/saplingnative/bindings/modules/pynodeipc/TARGETS deleted file mode 100644 index f1e7562569029..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pynodeipc/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pynodeipc", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:serde_json", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/util/nodeipc:nodeipc", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pynodemap/TARGETS b/eden/scm/saplingnative/bindings/modules/pynodemap/TARGETS deleted file mode 100644 index 14feb3f0d4d4b..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pynodemap/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pynodemap", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/nodemap:nodemap", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pypathhistory/TARGETS b/eden/scm/saplingnative/bindings/modules/pypathhistory/TARGETS deleted file mode 100644 index f70629ed6a238..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pypathhistory/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pypathhistory", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/async-runtime:async-runtime", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/dag:dag", - "//eden/scm/lib/pathhistory:pathhistory", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pypathmatcher/TARGETS b/eden/scm/saplingnative/bindings/modules/pypathmatcher/TARGETS deleted file mode 100644 index 1105c7ed256b4..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pypathmatcher/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pypathmatcher", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/io:io", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pypprint/TARGETS b/eden/scm/saplingnative/bindings/modules/pypprint/TARGETS deleted file mode 100644 index ea013a693536e..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pypprint/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pypprint", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/pprint:pprint", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyprocess/TARGETS b/eden/scm/saplingnative/bindings/modules/pyprocess/TARGETS deleted file mode 100644 index 5e53b47c2e987..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyprocess/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyprocess", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/spawn-ext:spawn-ext", - "//eden/scm/lib/util/procutil:procutil", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyprogress/TARGETS b/eden/scm/saplingnative/bindings/modules/pyprogress/TARGETS deleted file mode 100644 index 34b52c7c5c8bb..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyprogress/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyprogress", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/progress/model:progress-model", - "//eden/scm/lib/progress/render:progress-render", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyrefencode/TARGETS b/eden/scm/saplingnative/bindings/modules/pyrefencode/TARGETS deleted file mode 100644 index bc19dd9f3ce70..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyrefencode/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyrefencode", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/refencode:refencode", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyregex/TARGETS b/eden/scm/saplingnative/bindings/modules/pyregex/TARGETS deleted file mode 100644 index b12aa95031690..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyregex/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyregex", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:regex", - "//eden/scm/lib/cpython-ext:cpython-ext", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyrenderdag/TARGETS b/eden/scm/saplingnative/bindings/modules/pyrenderdag/TARGETS deleted file mode 100644 index 88b827a4cb94b..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyrenderdag/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyrenderdag", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:parking_lot", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/minibytes:minibytes", - "//eden/scm/lib/renderdag:renderdag", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyrepo/TARGETS b/eden/scm/saplingnative/bindings/modules/pyrepo/TARGETS deleted file mode 100644 index 3c9d24c587654..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyrepo/TARGETS +++ /dev/null @@ -1,40 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyrepo", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:parking_lot", - "//eden/scm/lib/checkout:checkout", - "//eden/scm/lib/context:context", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/repo:repo", - "//eden/scm/lib/repolock:repolock", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - "//eden/scm/lib/workingcopy:workingcopy", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - "//eden/scm/saplingnative/bindings/modules/pydag:pydag", - "//eden/scm/saplingnative/bindings/modules/pyeagerepo:pyeagerepo", - "//eden/scm/saplingnative/bindings/modules/pyedenapi:pyedenapi", - "//eden/scm/saplingnative/bindings/modules/pymetalog:pymetalog", - "//eden/scm/saplingnative/bindings/modules/pyrevisionstore:pyrevisionstore", - "//eden/scm/saplingnative/bindings/modules/pyworkingcopy:pyworkingcopy", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyrevisionstore/TARGETS b/eden/scm/saplingnative/bindings/modules/pyrevisionstore/TARGETS deleted file mode 100644 index 994bfaa95481b..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyrevisionstore/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyrevisionstore", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/config/model:configmodel", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/revisionstore:revisionstore", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - "//eden/scm/saplingnative/bindings/modules/pyconfigloader:pyconfigloader", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyrevlogindex/TARGETS b/eden/scm/saplingnative/bindings/modules/pyrevlogindex/TARGETS deleted file mode 100644 index e2f8a55e9cb3d..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyrevlogindex/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyrevlogindex", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/revlogindex:revlogindex", - "//eden/scm/saplingnative/bindings/modules/pybytes:pybytes", - "//eden/scm/saplingnative/bindings/modules/pydag:pydag", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pysptui/TARGETS b/eden/scm/saplingnative/bindings/modules/pysptui/TARGETS deleted file mode 100644 index b1e6173b9d4d8..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pysptui/TARGETS +++ /dev/null @@ -1,29 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pysptui", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:cpython", - "fbsource//third-party/rust:pipe", - "//eden/scm/lib/clidispatch:clidispatch", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/third-party/streampager:streampager", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pystatus/TARGETS b/eden/scm/saplingnative/bindings/modules/pystatus/TARGETS deleted file mode 100644 index ba685508bebdc..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pystatus/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pystatus", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/status:status", - "//eden/scm/lib/types:types", - "//eden/scm/lib/util:util", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pystoremodel/TARGETS b/eden/scm/saplingnative/bindings/modules/pystoremodel/TARGETS deleted file mode 100644 index 23494b43aaabf..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pystoremodel/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pystoremodel", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:serde", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pythreading/TARGETS b/eden/scm/saplingnative/bindings/modules/pythreading/TARGETS deleted file mode 100644 index 7ab2c6f3db96f..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pythreading/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pythreading", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:rand", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pytoml/TARGETS b/eden/scm/saplingnative/bindings/modules/pytoml/TARGETS deleted file mode 100644 index 9e52cf165e904..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pytoml/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pytoml", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:toml", - "//eden/scm/lib/cpython-ext:cpython-ext", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pytracing/TARGETS b/eden/scm/saplingnative/bindings/modules/pytracing/TARGETS deleted file mode 100644 index 056a062b0f785..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pytracing/TARGETS +++ /dev/null @@ -1,34 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pytracing", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - include_python_sys = True, - deps = [ - "fbsource//third-party/rust:lazy_static", - "fbsource//third-party/rust:parking_lot", - "fbsource//third-party/rust:serde_json", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/mincode:mincode", - "//eden/scm/lib/tracing-collector:tracing-collector", - "//eden/scm/lib/tracing-reload:tracing-reload", - "//eden/scm/lib/tracing-runtime-callsite:tracing-runtime-callsite", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pytreestate/TARGETS b/eden/scm/saplingnative/bindings/modules/pytreestate/TARGETS deleted file mode 100644 index eb6d4e229a99d..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pytreestate/TARGETS +++ /dev/null @@ -1,32 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pytreestate", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:parking_lot", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/treestate:treestate", - "//eden/scm/lib/types:types", - "//eden/scm/lib/vfs:vfs", - "//eden/scm/saplingnative/bindings/modules/pypathmatcher:pypathmatcher", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyversion/TARGETS b/eden/scm/saplingnative/bindings/modules/pyversion/TARGETS deleted file mode 100644 index 6029cbed7bd91..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyversion/TARGETS +++ /dev/null @@ -1,25 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyversion", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": ["python3-sys"], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/version:rust_version", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyvlq/TARGETS b/eden/scm/saplingnative/bindings/modules/pyvlq/TARGETS deleted file mode 100644 index a6b7ec2805d68..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyvlq/TARGETS +++ /dev/null @@ -1,27 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyvlq", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/vlqencoding:vlqencoding", - "//eden/scm/saplingnative/bindings/modules/pyio:pyio", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pywebview/TARGETS b/eden/scm/saplingnative/bindings/modules/pywebview/TARGETS deleted file mode 100644 index 6d6f8c174da74..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pywebview/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pywebview", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/webview-app:webview-app", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyworker/TARGETS b/eden/scm/saplingnative/bindings/modules/pyworker/TARGETS deleted file mode 100644 index a19c846ca5f6f..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyworker/TARGETS +++ /dev/null @@ -1,44 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyworker", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - "extra_buck_dependencies": { - "dependencies": [ - "//eden/scm/lib/revisionstore:revisionstore", - ], - }, - }, - }, - crate_root = "src/lib.rs", - test_deps = [ - "fbsource//third-party/rust:memmap2", - "fbsource//third-party/rust:quickcheck", - "fbsource//third-party/rust:tempfile", - "//eden/scm/lib/minibytes:minibytes", - ], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:crossbeam", - "fbsource//third-party/rust:tracing", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/revisionstore:revisionstore", - "//eden/scm/lib/storemodel:storemodel", - "//eden/scm/lib/types:types", - "//eden/scm/lib/vfs:vfs", - "//eden/scm/saplingnative/bindings/modules/pyrevisionstore:pyrevisionstore", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyworkingcopy/TARGETS b/eden/scm/saplingnative/bindings/modules/pyworkingcopy/TARGETS deleted file mode 100644 index b3af0cb31173b..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyworkingcopy/TARGETS +++ /dev/null @@ -1,45 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyworkingcopy", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - "features": { - "default": [], - "eden": [ - "pyworkingcopyclient/eden", - ], - }, - }, - }, - crate_root = "src/lib.rs", - features = ["eden"], - deps = [ - "fbsource//third-party/rust:anyhow", - "fbsource//third-party/rust:fs-err", - "fbsource//third-party/rust:parking_lot", - "//eden/scm/lib/context:context", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/pathmatcher:pathmatcher", - "//eden/scm/lib/sparse:sparse", - "//eden/scm/lib/types:types", - "//eden/scm/lib/workingcopy:workingcopy", - "//eden/scm/lib/workingcopy/repostate:repostate", - "//eden/scm/saplingnative/bindings/modules/pypathmatcher:pypathmatcher", - "//eden/scm/saplingnative/bindings/modules/pystatus:pystatus", - "//eden/scm/saplingnative/bindings/modules/pytreestate:pytreestate", - "//eden/scm/saplingnative/bindings/modules/pyworkingcopyclient:pyworkingcopyclient", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyworkingcopyclient/TARGETS b/eden/scm/saplingnative/bindings/modules/pyworkingcopyclient/TARGETS deleted file mode 100644 index 40532d0849ce7..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyworkingcopyclient/TARGETS +++ /dev/null @@ -1,30 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyworkingcopyclient", - srcs = glob(["src/**/*.rs"]), - autocargo = {"cargo_toml_config": { - "dependencies_override": {"dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - "sapling-edenfs-client": {"optional": True}, - }}, - "features": { - "default": [], - "eden": ["sapling-edenfs-client"], - }, - }}, - crate_root = "src/lib.rs", - features = ["eden"], - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/edenfs-client:edenfs-client", - "//eden/scm/lib/types:types", - "//eden/scm/lib/workingcopy:workingcopy", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyxdiff/TARGETS b/eden/scm/saplingnative/bindings/modules/pyxdiff/TARGETS deleted file mode 100644 index 57a08f338b5bb..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyxdiff/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyxdiff", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/xdiff:xdiff", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyzstd/TARGETS b/eden/scm/saplingnative/bindings/modules/pyzstd/TARGETS deleted file mode 100644 index 7b0a98020f920..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyzstd/TARGETS +++ /dev/null @@ -1,28 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyzstd", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "fbsource//third-party/rust:zstd", - "fbsource//third-party/rust:zstd-safe", - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/zstdelta:zstdelta", - ], -) diff --git a/eden/scm/saplingnative/bindings/modules/pyzstore/TARGETS b/eden/scm/saplingnative/bindings/modules/pyzstore/TARGETS deleted file mode 100644 index a6523d4874cee..0000000000000 --- a/eden/scm/saplingnative/bindings/modules/pyzstore/TARGETS +++ /dev/null @@ -1,26 +0,0 @@ -load("//eden/scm:targets.bzl", "rust_python_library") - -oncall("sapling") - -rust_python_library( - name = "pyzstore", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - crate_root = "src/lib.rs", - deps = [ - "//eden/scm/lib/cpython-ext:cpython-ext", - "//eden/scm/lib/zstore:zstore", - ], -) diff --git a/eden/scm/saplingnative/conch_parser/TARGETS b/eden/scm/saplingnative/conch_parser/TARGETS deleted file mode 100644 index ec3fa85b15dd8..0000000000000 --- a/eden/scm/saplingnative/conch_parser/TARGETS +++ /dev/null @@ -1,47 +0,0 @@ -load("@fbcode_macros//build_defs:rust_library.bzl", "rust_library") - -oncall("sapling") - -rust_library( - name = "rust_conch_parser", - srcs = glob(["src/**/*.rs"]), - autocargo = { - "cargo_target_config": { - "crate_type": [ - "cdylib", - ], - "name": "conch_parser", - }, - "cargo_toml_config": { - "dependencies_override": { - "dependencies": { - "cpython": { - "features": [ - "serde-convert", - "python3-sys", - "extension-module", - ], - "git": None, - "rev": None, - }, - }, - }, - }, - }, - # The `ovr_config//os:` setting allows us to select which - # platforms some target is compatible with. As this target is only a - # dependency for the conch_parser target, let's disable it - compatible_with = [ - "ovr_config//os:linux", - "ovr_config//os:macos", - ], - crate = "conch_parser", - crate_root = "src/lib.rs", - link_style = "static", - named_deps = { - "third_party_conch_parser": "//eden/scm/lib/third-party/conch-parser:conch-parser", - }, - deps = [ - "fbsource//third-party/rust:cpython", - ], -) diff --git a/eden/scm/saplingnative/pybindings/TARGETS b/eden/scm/saplingnative/pybindings/TARGETS deleted file mode 100644 index 0cf568a630cd9..0000000000000 --- a/eden/scm/saplingnative/pybindings/TARGETS +++ /dev/null @@ -1,17 +0,0 @@ -load("@fbcode_macros//build_defs:rust_python_extension.bzl", "rust_python_extension") - -oncall("sapling") - -rust_python_extension( - name = "bindings", - srcs = glob(["src/**/*.rs"]), - base_module = "", - compatible_with = [ - "ovr_config//os:linux", - ], - module_name = "bindings", - deps = [ - "fbsource//third-party/rust:cpython", - "//eden/scm/lib/commands:commands", - ], -) diff --git a/eden/scm/tests/TARGETS b/eden/scm/tests/TARGETS deleted file mode 100644 index 835a980ad20e0..0000000000000 --- a/eden/scm/tests/TARGETS +++ /dev/null @@ -1,290 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_command_alias", "buck_filegroup") -load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary") -load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest") -load("//eden:defs.bzl", "get_integration_test_env_and_deps") -load("//eden/scm/tests:targets.bzl", "get_blocklist", "get_hg_edenfs_watchman_run_tests_included", "get_hg_run_tests_excluded", "get_hg_watchman_run_tests_excluded") - -oncall("sapling") - -SRCS = dict( - [("unittestify.py", "unittestify.py")], -) - -OTHER_FILES = [ - "unittestify.py", - "TARGETS", -] - -RUN_TEST_PY_FILES = [ - "run-tests.py", - "features.py", - "watchman.py", - "killdaemons.py", - "default_hgrc.py", -] - -TEST_FILES = [f for f in glob(["**/*"]) if f not in RUN_TEST_PY_FILES and f not in OTHER_FILES] - -buck_filegroup( - name = "test_files", - srcs = TEST_FILES, -) - -python_binary( - name = "run_tests_py", - srcs = RUN_TEST_PY_FILES, - main_function = "eden.scm.tests.run-tests.main", - # The line below is necessary as we have some extensions (e.g., autodiff.py) in the tests directory - # which include modules like sapling.*, and that makes the linter confused about it - tags = ["noautodeps"], -) - -python_binary( - name = "run_tests_py_eden", - srcs = RUN_TEST_PY_FILES + ["edenfs.py"], - main_function = "eden.scm.tests.run-tests.main", - # The line below is necessary as we have some extensions (e.g., autodiff.py) in the tests directory - # which include modules like sapling.*, and that makes the linter confused about it - tags = ["noautodeps"], - deps = [ - "//eden/integration/lib:lib", - ], -) - -# @unsorted-dict-items -ENV = { - # PYTHONPATH messed up: - # - extension - # - extension_foreign_module - # - hook - # - merge_tools - # - commandserver - "HGTEST_EXCLUDED": get_hg_run_tests_excluded(), - "HGTEST_BLOCKLIST": get_blocklist(), - # used by unittestify.py - "HGTEST_DIR": "eden/scm/tests", - # The one below determines the location of all misc. files required by run-tests.py but not directly - # imported by it. This is especially important when running in opt mode. - "RUNTESTDIR": "$(location :test_files)", - "HGTEST_DUMMYSSH": "$(location :dummyssh3)", - "HGTEST_GETDB_SH": "$(location //eden/scm/fb/tests:getdb_sh)", - "HGTEST_HG": "$(location //eden/scm:hg_test)", - "HGEXECUTABLEPATH": "$(location //eden/scm:hg_test)", - "URLENCODE": "$(location //eden/mononoke/tests/integration:urlencode)", - "HGTEST_NORMAL_LAYOUT": "0", - "HGRUNTEST_SKIP_ENV": "1", - "HGTEST_PYTHON": "fbpython", - "HGTEST_RUN_TESTS_PY": "$(location :run_tests_py)", - "HGTEST_SLOWTIMEOUT": "2147483647", - # used by run-tests.py - # buck test has its own timeout so just disable run-tests.py - # timeout practically. - "HGTEST_TIMEOUT": "2147483647", - "HGTEST_CERTDIR": "$(location //eden/mononoke/tests/integration/certs/facebook:test_certs)", -} - -python_unittest( - name = "hg_run_tests", - srcs = SRCS, - # non-python deps should be in cpp_deps (even if not cpp) - cpp_deps = [ - "//eden/scm:scm_prompt", - ], - env = ENV, - resources = { - "//eden/scm/tests:dummyssh3": "dummyssh3.par", - "//eden/scm:hg_test": "hg.sh", - "//eden/scm:hgpython_test": "hgpython.sh", - }, - supports_static_listing = False, - runtime_deps = [ - "//eden/mononoke/tests/integration/certs/facebook:test_certs", - ], -) - -W_ENV = dict(ENV) - -W_ENV["HGTEST_EXCLUDED"] = get_hg_watchman_run_tests_excluded() - -W_ENV["HGTEST_BLOCKLIST"] = get_blocklist() - -W_ENV["HGTEST_WATCHMAN"] = "$(location //watchman:watchman)" - -python_unittest( - name = "hg_watchman_run_tests", - srcs = SRCS, - env = W_ENV, - resources = { - "//eden/scm/tests:dummyssh3": "dummyssh3.par", - "//eden/scm:hg_test": "hg.sh", - "//eden/scm:hgpython_test": "hgpython.sh", - "//watchman:watchman": "watchman", - }, - supports_static_listing = False, -) - -artifacts = get_integration_test_env_and_deps() - -E_ENV = artifacts["env"] - -E_ENV.update(ENV) - -E_ENV["HGTEST_RUN_TESTS_PY"] = "$(location :run_tests_py_eden)" - -E_ENV["HGTEST_USE_EDEN"] = "1" - -python_unittest( - name = "hg_edenfs_run_tests", - srcs = SRCS, - env = E_ENV, - resources = { - "//eden/scm/tests:dummyssh3": "dummyssh3.par", - "//eden/scm:hg_test": "hg.sh", - "//eden/scm:hgpython_test": "hgpython.sh", - }, - supports_static_listing = False, - runtime_deps = artifacts["deps"], -) - -# Order is important, we want HGTEST_RUN_TESTS_PY from the Eden env var dict -EW_ENV = dict(W_ENV) - -EW_ENV.update(E_ENV) - -EW_ENV["HGTEST_INCLUDED"] = get_hg_edenfs_watchman_run_tests_included() - -python_unittest( - name = "hg_edenfs_watchman_run_tests", - srcs = SRCS, - env = EW_ENV, - resources = { - "//eden/scm/tests:dummyssh3": "dummyssh3.par", - "//eden/scm:hg_test": "hg.sh", - "//eden/scm:hgpython_test": "hgpython.sh", - "//watchman:watchman": "watchman", - }, - supports_static_listing = False, - runtime_deps = artifacts["deps"], -) - -buck_command_alias( - name = "run_tests_py_eden_cli", - env = E_ENV, - exe = ":run_tests_py_eden", -) - -M_ENV = dict(ENV) - -M_ENV["USE_MONONOKE"] = "1" - -M_ENV["HGTEST_MONONOKE_SERVER"] = "$(location //eden/mononoke:mononoke)" - -M_ENV["HGTEST_GET_FREE_SOCKET"] = "$(location //eden/mononoke/tests/integration:get_free_socket)" - -M_ENV["HGTEST_CERTDIR"] = "$(location //eden/mononoke/tests/integration/certs/facebook:test_certs)" - -M_ENV.pop("HGTEST_EXCLUDED") - -M_ENV.pop("HGTEST_BLOCKLIST") - -M_ENV["HGTEST_INCLUDED"] = "test_(fb_ext_remotefilelog_(log|getpackv2|worker|rust_lfs|ruststores_lfs_duplicated)|edenapi.*)_t" - -M_ENV["TEST_FIXTURES"] = "$(location //eden/mononoke/tests/integration:test_fixtures)" - -M_ENV["JUST_KNOBS_DEFAULTS"] = "$(location //eden/mononoke/mononoke_macros:just_knobs_defaults)" - -M_ENV["FB_TEST_FIXTURES"] = "$(location //eden/mononoke/tests/integration/facebook:facebook_test_fixtures)" - -python_unittest( - name = "hg_mononoke_run_tests", - srcs = SRCS, - compatible_with = [ - "ovr_config//os:linux", - ], - env = M_ENV, - resources = { - "//eden/mononoke/tests/integration/certs/facebook:test_certs": "certs", - "//eden/mononoke/tests/integration:get_free_socket": "get_free_socket.par", - "//eden/mononoke:mononoke": "mononoke", - "//eden/scm/tests:dummyssh3": "dummyssh3.par", - "//eden/scm:hg_test": "hg.sh", - "//eden/scm:hgpython_test": "hgpython.sh", - "//watchman:watchman": "watchman", - }, - supports_static_listing = False, - runtime_deps = [ - "//eden/mononoke/tests/integration/certs/facebook:test_certs", - "//eden/mononoke/tests/integration:test_fixtures", - ], -) - -MEW_ENV = dict(EW_ENV) - -MEW_ENV["USE_MONONOKE"] = "1" - -MEW_ENV["HGTEST_MONONOKE_SERVER"] = "$(location //eden/mononoke:mononoke)" - -MEW_ENV["HGTEST_GET_FREE_SOCKET"] = "$(location //eden/mononoke/tests/integration:get_free_socket)" - -MEW_ENV["HGTEST_CERTDIR"] = "$(location //eden/mononoke/tests/integration/certs/facebook:test_certs)" - -MEW_ENV.pop("HGTEST_EXCLUDED") - -MEW_ENV.pop("HGTEST_BLOCKLIST") - -MEW_ENV["HGTEST_INCLUDED"] = "test_(e2e_clone)_t" - -MEW_ENV["TEST_FIXTURES"] = "$(location //eden/mononoke/tests/integration:test_fixtures)" - -MEW_ENV["JUST_KNOBS_DEFAULTS"] = "$(location //eden/mononoke/mononoke_macros:just_knobs_defaults)" - -MEW_ENV["FB_TEST_FIXTURES"] = "$(location //eden/mononoke/tests/integration/facebook:facebook_test_fixtures)" - -python_unittest( - name = "trinity_tests", - srcs = SRCS, - compatible_with = [ - "ovr_config//os:linux", - ], - env = MEW_ENV, - resources = { - "//eden/mononoke/tests/integration/certs/facebook:test_certs": "certs", - "//eden/mononoke/tests/integration:get_free_socket": "get_free_socket.par", - "//eden/mononoke:mononoke": "mononoke", - "//eden/scm/tests:dummyssh3": "dummyssh3.par", - "//eden/scm:hg_test": "hg.sh", - "//eden/scm:hgpython_test": "hgpython.sh", - "//watchman:watchman": "watchman", - }, - supports_static_listing = False, - runtime_deps = artifacts["deps"] + [ - "//eden/mononoke/tests/integration/certs/facebook:test_certs", - "//eden/mononoke/tests/integration:test_fixtures", - ], -) - -buck_filegroup( - name = "test_runner", - srcs = [ - "default_hgrc.py", - "dummyssh", - "heredoctest.py", - "hghave", - "hghave.py", - "hgsql/library.sh", - "hgsql/schema.innodb.sql", - "hgsql/schema.rocksdb.sql", - "infinitepush/library.sh", - "killdaemons.py", - "run-tests.py", - "setconfig.py", - "tinit.sh", - "watchman.py", - ], -) - -python_binary( - name = "dummyssh3", - srcs = ["dummyssh3.py"], - main_module = "eden.scm.tests.dummyssh3", -) diff --git a/eden/test-data/TARGETS b/eden/test-data/TARGETS deleted file mode 100644 index f1133ddca38a7..0000000000000 --- a/eden/test-data/TARGETS +++ /dev/null @@ -1,13 +0,0 @@ -load("@fbcode_macros//build_defs:native_rules.bzl", "buck_filegroup") - -oncall("scm_client_infra") - -buck_filegroup( - name = "overlay-v2", - srcs = ["overlay-v2.tgz"], -) - -buck_filegroup( - name = "snapshots", - srcs = glob(["snapshots/**"]), -) diff --git a/eden/test_support/TARGETS b/eden/test_support/TARGETS deleted file mode 100644 index 6f43d193c5712..0000000000000 --- a/eden/test_support/TARGETS +++ /dev/null @@ -1,8 +0,0 @@ -load("@fbcode_macros//build_defs:python_library.bzl", "python_library") - -oncall("scm_client_infra") - -python_library( - name = "py", - srcs = glob(["*.py"]), -)